{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 准备工作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "hnh_key = \"d51fbd0868d98deca1f02899f79c6e8e\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 地理/逆地理编码\n",
    "**地理编码/逆地理编码 API 是通过 HTTP/HTTPS 协议访问远程服务的接口，提供结构化地址与经纬度之间的相互转化的能力。**\n",
    "> - 结构化地址的定义： 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。\n",
    "> - 地理编码：将详细的结构化地址转换为高德经纬度坐标。且支持对地标性名胜景区、建筑物名称解析为高德经纬度坐标。\n",
    ">> - 结构化地址举例：北京市朝阳区阜通东大街6号转换后经纬度：116.480881,39.989410\n",
    ">> - 地标性建筑举例：天安门转换后经纬度：116.397499,39.908722\n",
    "> - 逆地理编码：将经纬度转换为详细结构化的地址，且返回附近周边的POI、AOI信息。\n",
    "      例如：116.480881,39.989410 转换地址描述后：北京市朝阳区阜通东大街6号\n",
    "> - url:https://restapi.amap.com/v3/geocode/geo?parameters（地理编码）\n",
    "     https://restapi.amap.com/v3/geocode/regeo?parameters（逆地理编码）\n",
    "> - 请求方式：requests.get()\n",
    "> - 参数:key,location为必选，其他可选参考API文档\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "## 地理编码函数\n",
    "def geocode(key,address,city=None,batch=None,sig=None,output=\"JSON\",callback=None):\n",
    "    \"\"\"获取高德API的地理编码\n",
    "    注释：key是指高德API的秘钥，请先去注册\n",
    "          address是指结构化地址，具体请查看：https://lbs.amap.com/api/webservice/guide/api/georegeo   \n",
    "    \"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"address\":address,\n",
    "    \"city\":city,\n",
    "    \"batch\":batch,\n",
    "    \"sig\":sig,\n",
    "    \"output\":output,\n",
    "    \"callback\":callback\n",
    "    }\n",
    "    \n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()[ 'geocodes'][0]['location']\n",
    "    return results"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 路径规划\n",
    "> - 1.步行\n",
    "> - 2.公交车\n",
    "> - 3.驾车"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 步行\n",
    "> - 接口简介：步行路径规划 API 可以规划100KM以内的步行通勤方案，并且返回通勤方案的数据\n",
    "> - url:https://restapi.amap.com/v3/direction/walking?parameters\n",
    "> - 请求方式:GET\n",
    "> - 请求参数：key,origin,destination为必选，其他可选参考API文档\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "## 数据准备\n",
    "origin = \"广东省广州市从化区中山大学南方学院\"\n",
    "destination = \"广东省广州市从化区富力泉天下\"\n",
    "起始点_中大南方 = geocode(hnh_key,origin)\n",
    "终点_富力泉 = geocode(hnh_key,destination)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def walking(key,origin,destination,sig=None,output=\"JSON\",callback=None):\n",
    "    \"\"\"获取高德API的步行路径规划\n",
    "    注释：key是指高德API的秘钥，请先去注册\n",
    "          origin和destination是指出发点和目的地，具体请查看：https://lbs.amap.com/api/webservice/guide/api/direction   \n",
    "    \"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/direction/walking?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"sig\":sig,\n",
    "        \"output\":output,\n",
    "        \"callback\":callback\n",
    "    }\n",
    "    \n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()[\"route\"][\"paths\"][0][\"steps\"]\n",
    "    b = []\n",
    "    for item in results:\n",
    "        b.append(item[\"instruction\"])\n",
    "    return b"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['向东步行101米右转',\n",
       " '向南步行199米向右前方行走',\n",
       " '向西步行159米左转',\n",
       " '向南步行237米左转',\n",
       " '向南步行498米向右前方行走',\n",
       " '沿源富街向西南步行1569米直行',\n",
       " '沿源湖街向西步行783米右转',\n",
       " '沿龙泉路向西北步行1723米右转',\n",
       " '沿龙泉路向北步行45米向右前方行走',\n",
       " '沿温泉大道向东北步行485米',\n",
       " '沿温泉大道向东北步行1040米左转',\n",
       " '向西北步行13米右转',\n",
       " '沿温泉大道向东北步行85米向左前方行走',\n",
       " '沿温泉大道步行204米直行',\n",
       " '沿景泉大道向北步行373米左转',\n",
       " '向西步行28米右转',\n",
       " '步行16米右转',\n",
       " '向北步行22米到达目的地']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "中大南方to富力泉 = walking(hnh_key,起始点_中大南方,终点_富力泉)\n",
    "中大南方to富力泉"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 公交车\n",
    "> - 接口简介：公交路径规划 API 可以规划综合各类公共（火车、公交、地铁）交通方式的通勤方案，并且返回通勤方案的数据\n",
    "> - url:https://restapi.amap.com/v3/direction/transit/integrated?parameters\n",
    "> - 请求方式:GET\n",
    "> - 请求参数：key,origin,destination，city为必选，其他可选参考API文档\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "## 数据准备\n",
    "origin = \"广东省广州市越秀区北京路\"\n",
    "destination = \"广东省广州市白云区嘉禾望岗\"\n",
    "city = \"广州市\"\n",
    "起始点_北京路 = geocode(hnh_key,origin)\n",
    "终点_嘉禾 = geocode(hnh_key,destination)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "## 公交车路径规划函数\n",
    "def bus(key,origin,destination,city,cityd=None,extensions=\"base\",strategy=0,nightflag=0,date=None,time=None,sig=None,output=\"JSON\",callback=None):\n",
    "    bus_url = \"https://restapi.amap.com/v3/direction/transit/integrated?parameters\"\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"city\":city,\n",
    "        \"cityd\":cityd,\n",
    "        \"extensions\":extensions,\n",
    "        \"strategy\":strategy,\n",
    "        \"nightflag\":nightflag,\n",
    "        \"date\":date,\n",
    "        \"time\":time,\n",
    "        \"sig\":sig,\n",
    "        \"output\":output,\n",
    "        \"callback\":callback\n",
    "    }\n",
    "    r = requests.get(bus_url,params=params)\n",
    "    result = r.json()[\"route\"][\"transits\"]\n",
    "    a = []\n",
    "    for i in result:\n",
    "        a.append(i[\"segments\"])\n",
    "    return a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[{'taxi': [],\n",
       "   'walking': {'origin': '113.267899,23.121342',\n",
       "    'destination': '113.264313,23.125446',\n",
       "    'distance': '756',\n",
       "    'duration': '648',\n",
       "    'steps': [{'instruction': '沿步行街步行44米右转',\n",
       "      'road': '步行街',\n",
       "      'distance': '44',\n",
       "      'duration': [],\n",
       "      'polyline': '113.267899,23.121342;113.267822,23.121332;113.267715,23.121298;113.267479,23.121220',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿龙藏街步行206米左转',\n",
       "      'road': '龙藏街',\n",
       "      'distance': '206',\n",
       "      'duration': [],\n",
       "      'polyline': '113.267479,23.121216;113.267403,23.121397;113.267365,23.121485;113.267288,23.121675;113.267242,23.121784;113.267097,23.122149;113.267036,23.122335;113.267014,23.122509;113.266899,23.123020',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿西湖路步行105米右转',\n",
       "      'road': '西湖路',\n",
       "      'distance': '105',\n",
       "      'duration': [],\n",
       "      'polyline': '113.266899,23.123020;113.266670,23.123009;113.266052,23.122986;113.265869,23.123013',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿教育路步行223米左转',\n",
       "      'road': '教育路',\n",
       "      'distance': '223',\n",
       "      'duration': [],\n",
       "      'polyline': '113.265869,23.123013;113.265785,23.123472;113.265671,23.124153;113.265579,23.124887;113.265549,23.125017',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '步行178米到达公园前',\n",
       "      'road': [],\n",
       "      'distance': '178',\n",
       "      'duration': [],\n",
       "      'polyline': '113.265556,23.125017;113.265411,23.124983;113.265381,23.125313;113.265366,23.125500;113.264938,23.125483;113.264610,23.125463;113.264534,23.125460;113.264313,23.125452;113.264313,23.125446',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达公园前'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '公园前',\n",
       "       'id': '440100023308014',\n",
       "       'location': '113.264315,23.125446'},\n",
       "      'arrival_stop': {'name': '嘉禾望岗',\n",
       "       'id': '440100023308025',\n",
       "       'location': '113.289243,23.237460'},\n",
       "      'name': '地铁2号线(广州南站--嘉禾望岗)',\n",
       "      'id': '440100023308',\n",
       "      'type': '地铁线路',\n",
       "      'distance': '13532',\n",
       "      'duration': '1414',\n",
       "      'polyline': '113.264315,23.125446;113.264306,23.126553;113.264290,23.126756;113.264258,23.126948;113.264199,23.127190;113.264102,23.127500;113.264011,23.127757;113.263866,23.128083;113.263759,23.128290;113.263604,23.128541;113.263512,23.128729;113.263453,23.128916;113.263416,23.129109;113.263405,23.129311;113.263405,23.129587;113.263408,23.130546;113.263431,23.132179;113.263453,23.133701;113.263488,23.135309;113.263193,23.136548;113.262781,23.137533;113.262412,23.138212;113.262129,23.138693;113.261366,23.140041;113.260711,23.141236;113.259948,23.142491;113.259176,23.143674;113.258314,23.144939;113.257300,23.146587;113.256603,23.148143;113.255965,23.149569;113.254560,23.152630;113.254224,23.153704;113.254275,23.154777;113.254583,23.155830;113.255037,23.156770;113.255671,23.157767;113.256851,23.159402;113.257924,23.160877;113.263368,23.168259;113.263752,23.168915;113.270649,23.181059;113.270966,23.181613;113.271283,23.182166;113.275082,23.188656;113.275602,23.189574;113.276112,23.190465;113.279861,23.196914;113.280697,23.198580;113.281353,23.199919;113.281628,23.200920;113.281984,23.202934;113.282188,23.204355;113.282375,23.205807;113.282647,23.208025;113.282902,23.209555;113.283180,23.210513;113.283451,23.211301;113.283728,23.212102;113.284319,23.214690;113.284774,23.216394;113.285066,23.217397;113.285474,23.218366;113.286070,23.219428;113.287038,23.220919;113.287376,23.221645;113.287713,23.222367;113.288217,23.223805;113.288637,23.225007;113.289018,23.226014;113.289158,23.226921;113.289293,23.228685;113.289344,23.230395;113.289319,23.231847;113.289242,23.236973;113.289243,23.237460',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': '0600',\n",
       "      'end_time': '2330',\n",
       "      'via_num': '10',\n",
       "      'via_stops': [{'name': '纪念堂',\n",
       "        'id': '440100023308015',\n",
       "        'location': '113.263431,23.132179'},\n",
       "       {'name': '越秀公园',\n",
       "        'id': '440100023308016',\n",
       "        'location': '113.261366,23.140041'},\n",
       "       {'name': '广州火车站',\n",
       "        'id': '440100023308017',\n",
       "        'location': '113.256603,23.148143'},\n",
       "       {'name': '三元里',\n",
       "        'id': '440100023308018',\n",
       "        'location': '113.256851,23.159402'},\n",
       "       {'name': '飞翔公园',\n",
       "        'id': '440100023308019',\n",
       "        'location': '113.263752,23.168915'},\n",
       "       {'name': '白云公园',\n",
       "        'id': '440100023308020',\n",
       "        'location': '113.270966,23.181613'},\n",
       "       {'name': '白云文化广场',\n",
       "        'id': '440100023308021',\n",
       "        'location': '113.275602,23.189574'},\n",
       "       {'name': '萧岗',\n",
       "        'id': '440100023308022',\n",
       "        'location': '113.280697,23.198580'},\n",
       "       {'name': '江夏',\n",
       "        'id': '440100023308023',\n",
       "        'location': '113.283451,23.211301'},\n",
       "       {'name': '黄边',\n",
       "        'id': '440100023308024',\n",
       "        'location': '113.287376,23.221645'}]}]},\n",
       "   'entrance': {'name': 'D口', 'location': '113.265396,23.124983'},\n",
       "   'exit': {'name': 'H口', 'location': '113.288910,23.235960'},\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.289246,23.237457',\n",
       "    'destination': '113.286179,23.235790',\n",
       "    'distance': '524',\n",
       "    'duration': '449',\n",
       "    'steps': [{'instruction': '步行248米右转',\n",
       "      'road': [],\n",
       "      'distance': '248',\n",
       "      'duration': [],\n",
       "      'polyline': '113.289246,23.237457;113.289246,23.237461;113.289238,23.237600;113.289009,23.237604;113.289009,23.237553;113.289009,23.237440;113.289001,23.237062;113.288910,23.237062;113.288910,23.236107;113.288910,23.235964;113.288910,23.235786',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿华英路步行276米',\n",
       "      'road': '华英路',\n",
       "      'distance': '276',\n",
       "      'duration': [],\n",
       "      'polyline': '113.288910,23.235781;113.288765,23.235781;113.288696,23.235781;113.288544,23.235781;113.287025,23.235790;113.286819,23.235790;113.286652,23.235790;113.286179,23.235790',\n",
       "      'action': [],\n",
       "      'assistant_action': []}]},\n",
       "   'bus': {'buslines': []},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}}],\n",
       " [{'taxi': [],\n",
       "   'walking': {'origin': '113.267899,23.121342',\n",
       "    'destination': '113.266350,23.125589',\n",
       "    'distance': '763',\n",
       "    'duration': '654',\n",
       "    'steps': [{'instruction': '沿步行街步行155米右转',\n",
       "      'road': '步行街',\n",
       "      'distance': '155',\n",
       "      'duration': [],\n",
       "      'polyline': '113.267899,23.121342;113.267822,23.121332;113.267715,23.121298;113.267479,23.121220;113.267242,23.121120;113.267006,23.121063;113.266434,23.120916',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿教育路步行503米向右前方行走',\n",
       "      'road': '教育路',\n",
       "      'distance': '503',\n",
       "      'duration': [],\n",
       "      'polyline': '113.266434,23.120911;113.266449,23.120968;113.266449,23.121029;113.266212,23.121563;113.265999,23.122061;113.265984,23.122162;113.265945,23.122526;113.265915,23.122713;113.265900,23.122774;113.265869,23.123013;113.265785,23.123472;113.265671,23.124153;113.265579,23.124887;113.265549,23.125017;113.265526,23.125113;113.265472,23.125391',\n",
       "      'action': '向右前方行走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿吉祥路步行16米右转',\n",
       "      'road': '吉祥路',\n",
       "      'distance': '16',\n",
       "      'duration': [],\n",
       "      'polyline': '113.265472,23.125391;113.265472,23.125538',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿中山五路步行89米到达中山五路',\n",
       "      'road': '中山五路',\n",
       "      'distance': '89',\n",
       "      'duration': [],\n",
       "      'polyline': '113.265465,23.125538;113.266106,23.125572;113.266251,23.125586;113.266350,23.125589',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达中山五路'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '中山五路',\n",
       "       'id': '440100016808033',\n",
       "       'location': '113.266502,23.125599'},\n",
       "      'arrival_stop': {'name': '市交校',\n",
       "       'id': '440100016808021',\n",
       "       'location': '113.279999,23.234293'},\n",
       "      'name': '528路(广卫路总站--长红村总站)',\n",
       "      'id': '440100016808',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '13962',\n",
       "      'duration': '2608',\n",
       "      'polyline': '113.266502,23.125599;113.266510,23.125601;113.265465,23.125538;113.265396,23.125538;113.264633,23.125500;113.264290,23.125483;113.264153,23.125477;113.264015,23.125473;113.263580,23.125452;113.263367,23.125446;113.263268,23.125446;113.262459,23.125408;113.262383,23.125807;113.262367,23.125912;113.262352,23.126221;113.262337,23.126549;113.262291,23.126835;113.262222,23.127068;113.262222,23.127764;113.262222,23.127943;113.262245,23.128450;113.262230,23.128651;113.262222,23.128834;113.262207,23.129026;113.262169,23.129372;113.262123,23.129858;113.262070,23.129913;113.262047,23.130314;113.261932,23.131830;113.261887,23.132912;113.261856,23.135342;113.261848,23.136175;113.261841,23.136992;113.261841,23.137205;113.261833,23.137468;113.261856,23.137623;113.261856,23.138079;113.261795,23.138653;113.261635,23.139271;113.261559,23.139553;113.261475,23.139896;113.261452,23.140100;113.261421,23.140373;113.261452,23.140711;113.261520,23.141554;113.261543,23.142023;113.261566,23.142218;113.261566,23.142221;113.261566,23.142218;113.261696,23.143534;113.261673,23.143675;113.261795,23.145500;113.261887,23.146166;113.262123,23.147341;113.262299,23.148111;113.262329,23.148191;113.262611,23.149645;113.262642,23.149822;113.262657,23.150282;113.262611,23.150452;113.262672,23.151098;113.262749,23.151506;113.262779,23.151995;113.262779,23.152214;113.262772,23.152483;113.262749,23.152729;113.262711,23.152916;113.262688,23.153028;113.262650,23.153133;113.262604,23.153238;113.262444,23.153534;113.262062,23.154099;113.262016,23.154184;113.261986,23.154259;113.261963,23.154310;113.261841,23.154480;113.261719,23.154644;113.261627,23.154768;113.261368,23.155031;113.261192,23.155191;113.260986,23.155317;113.260521,23.155546;113.260262,23.155682;113.260056,23.155783;113.259644,23.155977;113.258995,23.156363;113.258766,23.156607;113.258217,23.157066;113.257683,23.157509;113.257645,23.157541;113.257408,23.157782;113.257332,23.157921;113.257286,23.158129;113.257233,23.158365;113.257156,23.158602;113.257103,23.158806;113.257057,23.159048;113.257042,23.159180;113.256943,23.159782;113.256859,23.160122;113.256844,23.160183;113.256729,23.160456;113.256660,23.160601;113.256607,23.160683;113.256454,23.160875;113.256302,23.161011;113.255760,23.161388;113.255486,23.161558;113.255325,23.161663;113.255264,23.161711;113.255074,23.161858;113.254898,23.162008;113.254776,23.162149;113.254707,23.162239;113.254578,23.162468;113.254478,23.162691;113.254425,23.162848;113.254402,23.162983;113.254341,23.163446;113.254219,23.163834;113.254143,23.164001;113.254051,23.164267;113.253967,23.164539;113.253891,23.164722;113.253624,23.165586;113.253593,23.165697;113.253494,23.166025;113.253426,23.166267;113.253296,23.166653;113.253128,23.167223;113.253067,23.167404;113.252869,23.167986;113.252724,23.168451;113.252487,23.169081;113.252373,23.169426;113.252098,23.170164;113.252037,23.170321;113.251740,23.171099;113.251396,23.171926;113.251366,23.172009;113.251114,23.172630;113.251099,23.172678;113.250877,23.173195;113.250824,23.173361;113.250748,23.173565;113.250359,23.174582;113.250313,23.174696;113.250252,23.175196;113.250267,23.175556;113.250381,23.176012;113.250572,23.176512;113.250648,23.176649;113.250740,23.176809;113.250923,23.177172;113.251091,23.177540;113.251175,23.177732;113.251175,23.177738;113.251175,23.177732;113.251274,23.177965;113.251366,23.178310;113.251419,23.178579;113.251472,23.179235;113.251488,23.179358;113.251495,23.179945;113.251511,23.180035;113.251541,23.180164;113.251579,23.180387;113.251625,23.180552;113.251701,23.180756;113.251778,23.180916;113.251900,23.181124;113.251923,23.181150;113.252090,23.181376;113.252251,23.181559;113.252457,23.181723;113.252594,23.181828;113.252731,23.181917;113.253281,23.182249;113.253479,23.182373;113.254211,23.182796;113.254265,23.182833;113.254898,23.183195;113.255112,23.183311;113.255325,23.183437;113.256065,23.183893;113.256439,23.184124;113.256500,23.184172;113.256592,23.184240;113.256874,23.184401;113.256871,23.184401;113.257066,23.184514;113.257157,23.184566;113.257691,23.184874;113.258064,23.185087;113.258403,23.185282;113.258581,23.185373;113.259201,23.185720;113.259379,23.185825;113.259918,23.186120;113.260308,23.186319;113.260729,23.186484;113.260794,23.186879;113.260985,23.188064;113.260990,23.188090;113.261042,23.188385;113.261111,23.188789;113.261220,23.189262;113.261263,23.189427;113.261319,23.189705;113.261372,23.189926;113.261510,23.190430;113.261576,23.190668;113.261680,23.190946;113.261949,23.191632;113.262062,23.191897;113.262153,23.192079;113.262179,23.192135;113.262426,23.192648;113.262535,23.192886;113.262648,23.193125;113.262752,23.193355;113.262791,23.193442;113.263151,23.194358;113.263355,23.195013;113.263407,23.195239;113.263490,23.195586;113.263516,23.195707;113.263546,23.196085;113.263555,23.196194;113.263563,23.196424;113.263576,23.196615;113.263715,23.196814;113.263728,23.196888;113.263759,23.197400;113.263772,23.197830;113.263771,23.197830;113.263786,23.198242;113.263779,23.198650;113.263771,23.198997;113.263557,23.199226;113.263611,23.199293;113.263657,23.199368;113.263664,23.199453;113.263668,23.199453;113.263655,23.199653;113.263659,23.199931;113.263659,23.200230;113.263668,23.200694;113.263676,23.201107;113.263646,23.201762;113.263637,23.201840;113.263542,23.202717;113.263559,23.202739;113.263589,23.202808;113.263607,23.202878;113.263607,23.202925;113.263585,23.202999;113.263533,23.203082;113.263533,23.203125;113.263524,23.203615;113.263524,23.203702;113.263537,23.203867;113.263555,23.204028;113.263563,23.204297;113.263568,23.204566;113.263576,23.204839;113.263594,23.205512;113.263611,23.205855;113.263563,23.205938;113.263581,23.206250;113.263589,23.206549;113.263611,23.207062;113.263650,23.207656;113.263655,23.207747;113.263698,23.208368;113.263811,23.208641;113.263928,23.208854;113.264622,23.209948;113.264987,23.210525;113.264987,23.210521;113.265043,23.210612;113.265330,23.211046;113.265608,23.211332;113.265786,23.211515;113.266202,23.211845;113.266797,23.212730;113.267109,23.213207;113.267109,23.213203;113.267339,23.213563;113.267474,23.213793;113.267635,23.214089;113.267648,23.214110;113.268086,23.214891;113.268225,23.215208;113.268247,23.215260;113.268511,23.215894;113.268594,23.216155;113.268685,23.216554;113.268754,23.216827;113.268885,23.217214;113.269023,23.217565;113.269041,23.217595;113.269240,23.218047;113.269336,23.218255;113.269388,23.218372;113.269534,23.218650;113.269621,23.218759;113.269701,23.218963;113.269900,23.219371;113.270156,23.219731;113.270373,23.219957;113.271298,23.220734;113.271602,23.221007;113.271879,23.221328;113.272062,23.221580;113.272140,23.221727;113.272222,23.221862;113.272422,23.222240;113.272704,23.222726;113.272769,23.222882;113.272817,23.223047;113.272852,23.223342;113.272839,23.223520;113.272799,23.223681;113.272760,23.223819;113.272747,23.223984;113.272786,23.224232;113.272891,23.224957;113.272912,23.225095;113.272999,23.225712;113.272999,23.225725;113.273134,23.226602;113.273177,23.226940;113.273251,23.227452;113.273264,23.227513;113.273338,23.228012;113.273455,23.228845;113.273477,23.229002;113.273537,23.229340;113.273611,23.229635;113.273628,23.229714;113.273702,23.229909;113.273824,23.230208;113.274010,23.230460;113.274184,23.230651;113.274366,23.230803;113.274744,23.231050;113.275126,23.231272;113.275655,23.231554;113.276593,23.232066;113.276596,23.232067;113.277084,23.232330;113.277412,23.232510;113.278732,23.233232;113.278969,23.233387;113.279350,23.233650;113.279564,23.233829;113.279778,23.234032;113.279953,23.234236;113.279999,23.234293',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': [],\n",
       "      'end_time': [],\n",
       "      'via_num': '18',\n",
       "      'via_stops': [{'name': '迎宾馆',\n",
       "        'id': '440100016808003',\n",
       "        'location': '113.262222,23.127943'},\n",
       "       {'name': '越秀公园',\n",
       "        'id': '440100016808004',\n",
       "        'location': '113.261566,23.142218'},\n",
       "       {'name': '三元里大道(桂花岗)2',\n",
       "        'id': '440100016808027',\n",
       "        'location': '113.260521,23.155546'},\n",
       "       {'name': '三元里',\n",
       "        'id': '440100016808006',\n",
       "        'location': '113.257645,23.157541'},\n",
       "       {'name': '北站',\n",
       "        'id': '440100016808007',\n",
       "        'location': '113.253593,23.165697'},\n",
       "       {'name': '沙涌',\n",
       "        'id': '440100016808028',\n",
       "        'location': '113.252869,23.167986'},\n",
       "       {'name': '棠下(三元里大道)',\n",
       "        'id': '440100016808009',\n",
       "        'location': '113.251114,23.172630'},\n",
       "       {'name': '三元里大道中',\n",
       "        'id': '440100016808010',\n",
       "        'location': '113.251175,23.177732'},\n",
       "       {'name': '棠溪',\n",
       "        'id': '440100016808011',\n",
       "        'location': '113.251701,23.180756'},\n",
       "       {'name': '三元里大道北',\n",
       "        'id': '440100016808012',\n",
       "        'location': '113.256874,23.184401'},\n",
       "       {'name': '新市墟',\n",
       "        'id': '440100016808013',\n",
       "        'location': '113.263555,23.196194'},\n",
       "       {'name': '机场路',\n",
       "        'id': '440100016808029',\n",
       "        'location': '113.263772,23.197830'},\n",
       "       {'name': '黄石路口',\n",
       "        'id': '440100016808015',\n",
       "        'location': '113.263664,23.199453'},\n",
       "       {'name': '联和',\n",
       "        'id': '440100016808030',\n",
       "        'location': '113.264987,23.210525'},\n",
       "       {'name': '鹤边',\n",
       "        'id': '440100016808017',\n",
       "        'location': '113.267109,23.213207'},\n",
       "       {'name': '省戒毒基地',\n",
       "        'id': '440100016808018',\n",
       "        'location': '113.268885,23.217214'},\n",
       "       {'name': '黄边',\n",
       "        'id': '440100016808031',\n",
       "        'location': '113.272999,23.225712'},\n",
       "       {'name': '嘉禾',\n",
       "        'id': '440100016808020',\n",
       "        'location': '113.276593,23.232066'}]}]},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.279976,23.234262',\n",
       "    'destination': '113.286171,23.235794',\n",
       "    'distance': '760',\n",
       "    'duration': '651',\n",
       "    'steps': [{'instruction': '沿鹤龙二路步行195米右转',\n",
       "      'road': '鹤龙二路',\n",
       "      'distance': '195',\n",
       "      'duration': [],\n",
       "      'polyline': '113.279976,23.234262;113.280205,23.234579;113.280365,23.234838;113.280487,23.235083;113.280838,23.235811;113.280853,23.235846',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿望岗荷木岭街步行493米往前走',\n",
       "      'road': '望岗荷木岭街',\n",
       "      'distance': '493',\n",
       "      'duration': [],\n",
       "      'polyline': '113.280853,23.235846;113.281105,23.235790;113.281624,23.235685;113.282349,23.235573;113.282600,23.235538;113.282974,23.235600;113.283180,23.235607;113.283417,23.235603;113.283775,23.235487;113.283829,23.235474;113.284012,23.235546;113.284233,23.235708;113.284462,23.235876;113.284538,23.235893;113.284920,23.235876;113.285461,23.235811',\n",
       "      'action': '往前走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿华英路步行72米',\n",
       "      'road': '华英路',\n",
       "      'distance': '72',\n",
       "      'duration': [],\n",
       "      'polyline': '113.285461,23.235807;113.285660,23.235807;113.286064,23.235794;113.286171,23.235794',\n",
       "      'action': [],\n",
       "      'assistant_action': []}]},\n",
       "   'bus': {'buslines': []},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}}],\n",
       " [{'taxi': [],\n",
       "   'walking': {'origin': '113.267899,23.121342',\n",
       "    'destination': '113.269936,23.121336',\n",
       "    'distance': '291',\n",
       "    'duration': '249',\n",
       "    'steps': [{'instruction': '沿步行街步行120米右转',\n",
       "      'road': '步行街',\n",
       "      'distance': '120',\n",
       "      'duration': [],\n",
       "      'polyline': '113.267899,23.121342;113.268509,23.121468;113.269058,23.121580',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿北京路步行74米左转',\n",
       "      'road': '北京路',\n",
       "      'distance': '74',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269058,23.121580;113.269112,23.120907',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿文明路步行97米到达北京路口',\n",
       "      'road': '文明路',\n",
       "      'distance': '97',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269112,23.120903;113.269417,23.121067;113.269814,23.121267;113.269936,23.121336',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达北京路口'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '北京路口',\n",
       "       'id': '440100016836015',\n",
       "       'location': '113.269890,23.121311'},\n",
       "      'arrival_stop': {'name': '地铁市二宫站',\n",
       "       'id': '440100016836042',\n",
       "       'location': '113.270078,23.105365'},\n",
       "      'name': '544路(广州体育馆总站--纸厂总站)',\n",
       "      'id': '440100016836',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '2878',\n",
       "      'duration': '1074',\n",
       "      'polyline': '113.269890,23.121311;113.269882,23.121307;113.269814,23.121267;113.269417,23.121067;113.269112,23.120903;113.269234,23.120564;113.269287,23.120405;113.269318,23.120300;113.269379,23.120117;113.269638,23.119116;113.269768,23.118658;113.269806,23.118580;113.269966,23.118130;113.270226,23.117496;113.270386,23.117149;113.270515,23.116693;113.270683,23.116241;113.270729,23.116116;113.270790,23.115955;113.270897,23.115664;113.270897,23.115669;113.270897,23.115664;113.270988,23.115400;113.271019,23.115236;113.271072,23.114977;113.270905,23.114931;113.270119,23.114765;113.269608,23.114609;113.269043,23.114408;113.268974,23.114389;113.268570,23.114244;113.267586,23.113857;113.267464,23.113840;113.266251,23.113373;113.265999,23.113283;113.265648,23.113401;113.265327,23.113464;113.265221,23.113499;113.265129,23.113560;113.264931,23.113747;113.264870,23.113829;113.264854,23.113867;113.264816,23.113943;113.264786,23.114067;113.264702,23.114510;113.264656,23.114862;113.264839,23.114964;113.264977,23.115044;113.265121,23.115082;113.265541,23.115128;113.265602,23.115114;113.265778,23.114882;113.265999,23.114578;113.266197,23.114222;113.266518,23.113615;113.266792,23.113033;113.266968,23.112646;113.267174,23.112204;113.267464,23.111567;113.267639,23.111212;113.267723,23.110977;113.267883,23.110586;113.267990,23.110346;113.268112,23.110151;113.268158,23.110044;113.268105,23.110022;113.268372,23.109331;113.268918,23.108025;113.268919,23.108025;113.269041,23.107734;113.269518,23.106584;113.269588,23.106528;113.269679,23.106306;113.269783,23.106042;113.269931,23.105703;113.270039,23.105460;113.270078,23.105365',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': '0600',\n",
       "      'end_time': '2220',\n",
       "      'via_num': '3',\n",
       "      'via_stops': [{'name': '南关',\n",
       "        'id': '440100016836016',\n",
       "        'location': '113.270897,23.115664'},\n",
       "       {'name': '海珠广场(侨光西)',\n",
       "        'id': '440100016836041',\n",
       "        'location': '113.264854,23.113867'},\n",
       "       {'name': '江南大道北',\n",
       "        'id': '440100016836032',\n",
       "        'location': '113.268918,23.108025'}]},\n",
       "     {'departure_stop': {'name': '北京路口',\n",
       "       'id': '440100016293014',\n",
       "       'location': '113.269965,23.121350'},\n",
       "      'arrival_stop': {'name': '地铁市二宫站',\n",
       "       'id': '440100016293052',\n",
       "       'location': '113.270082,23.105360'},\n",
       "      'name': '190路(河田西总站--大塘总站)',\n",
       "      'id': '440100016293',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '2969',\n",
       "      'duration': '1210',\n",
       "      'polyline': '113.269965,23.121350;113.269961,23.121350;113.269813,23.121267;113.269410,23.121068;113.269110,23.120903;113.269249,23.120490;113.269288,23.120404;113.269314,23.120299;113.269375,23.120117;113.269514,23.119588;113.269508,23.119587;113.269638,23.119116;113.269768,23.118658;113.269577,23.118547;113.269043,23.118374;113.268913,23.118334;113.268677,23.118252;113.268532,23.118177;113.268044,23.117855;113.267845,23.117750;113.267761,23.117708;113.267756,23.117708;113.267613,23.117635;113.267478,23.117561;113.267383,23.117465;113.267357,23.117409;113.267322,23.117309;113.267322,23.117079;113.267309,23.116997;113.267244,23.116879;113.266927,23.116536;113.266463,23.116076;113.266497,23.116024;113.266975,23.115803;113.267044,23.115747;113.267170,23.115590;113.267240,23.115451;113.267313,23.115234;113.267339,23.115148;113.267374,23.115000;113.267374,23.114857;113.267331,23.114601;113.267274,23.114418;113.267161,23.114036;113.267127,23.113941;113.267105,23.113885;113.267018,23.113780;113.266975,23.113728;113.266845,23.113655;113.266298,23.113385;113.266011,23.113264;113.265638,23.113310;113.265402,23.113333;113.265204,23.113442;113.265065,23.113524;113.264935,23.113655;113.264844,23.113806;113.264835,23.113824;113.264831,23.113819;113.264826,23.113832;113.264701,23.114214;113.264679,23.114340;113.264657,23.114861;113.264839,23.114965;113.264978,23.115043;113.265122,23.115082;113.265538,23.115126;113.265599,23.115113;113.265781,23.114883;113.266003,23.114579;113.266198,23.114223;113.266515,23.113615;113.266654,23.113365;113.266793,23.113034;113.266970,23.112648;113.267170,23.112205;113.267465,23.111567;113.267635,23.111211;113.267726,23.110977;113.267882,23.110586;113.267995,23.110356;113.268108,23.110022;113.268537,23.108941;113.268963,23.107930;113.269041,23.107743;113.269536,23.106602;113.269588,23.106528;113.269679,23.106306;113.269783,23.106042;113.269931,23.105703;113.270039,23.105460;113.270082,23.105360',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': [],\n",
       "      'end_time': [],\n",
       "      'via_num': '4',\n",
       "      'via_stops': [{'name': '北京南',\n",
       "        'id': '440100016293036',\n",
       "        'location': '113.269514,23.119588'},\n",
       "       {'name': '泰康路',\n",
       "        'id': '440100016293016',\n",
       "        'location': '113.267761,23.117708'},\n",
       "       {'name': '海珠广场(侨光西)',\n",
       "        'id': '440100016293051',\n",
       "        'location': '113.264835,23.113824'},\n",
       "       {'name': '江南大道北',\n",
       "        'id': '440100016293038',\n",
       "        'location': '113.268963,23.107930'}]}]},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.270073,23.105370',\n",
       "    'destination': '113.269890,23.105993',\n",
       "    'distance': '112',\n",
       "    'duration': '96',\n",
       "    'steps': [{'instruction': '沿江南大道中步行7米左转',\n",
       "      'road': '江南大道中',\n",
       "      'distance': '7',\n",
       "      'duration': [],\n",
       "      'polyline': '113.270073,23.105370;113.270050,23.105434',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '步行105米到达市二宫',\n",
       "      'road': [],\n",
       "      'distance': '105',\n",
       "      'duration': [],\n",
       "      'polyline': '113.270050,23.105434;113.269882,23.105377;113.269714,23.105778;113.269936,23.105860;113.269890,23.105993',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达市二宫'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '市二宫',\n",
       "       'id': '440100023308012',\n",
       "       'location': '113.269890,23.105996'},\n",
       "      'arrival_stop': {'name': '嘉禾望岗',\n",
       "       'id': '440100023308025',\n",
       "       'location': '113.289243,23.237460'},\n",
       "      'name': '地铁2号线(广州南站--嘉禾望岗)',\n",
       "      'id': '440100023308',\n",
       "      'type': '地铁线路',\n",
       "      'distance': '15693',\n",
       "      'duration': '1647',\n",
       "      'polyline': '113.269890,23.105996;113.269527,23.106817;113.268684,23.108798;113.268507,23.109168;113.268271,23.109648;113.268105,23.109944;113.267789,23.110437;113.267392,23.110990;113.266957,23.111661;113.266651,23.112159;113.265900,23.113598;113.265344,23.114796;113.264760,23.116013;113.264658,23.116215;113.264583,23.116408;113.264540,23.116600;113.264519,23.116837;113.264503,23.117064;113.264310,23.124062;113.264315,23.125446;113.264306,23.126553;113.264290,23.126756;113.264258,23.126948;113.264199,23.127190;113.264102,23.127500;113.264011,23.127757;113.263866,23.128083;113.263759,23.128290;113.263604,23.128541;113.263512,23.128729;113.263453,23.128916;113.263416,23.129109;113.263405,23.129311;113.263405,23.129587;113.263408,23.130546;113.263431,23.132179;113.263453,23.133701;113.263488,23.135309;113.263193,23.136548;113.262781,23.137533;113.262412,23.138212;113.262129,23.138693;113.261366,23.140041;113.260711,23.141236;113.259948,23.142491;113.259176,23.143674;113.258314,23.144939;113.257300,23.146587;113.256603,23.148143;113.255965,23.149569;113.254560,23.152630;113.254224,23.153704;113.254275,23.154777;113.254583,23.155830;113.255037,23.156770;113.255671,23.157767;113.256851,23.159402;113.257924,23.160877;113.263368,23.168259;113.263752,23.168915;113.270649,23.181059;113.270966,23.181613;113.271283,23.182166;113.275082,23.188656;113.275602,23.189574;113.276112,23.190465;113.279861,23.196914;113.280697,23.198580;113.281353,23.199919;113.281628,23.200920;113.281984,23.202934;113.282188,23.204355;113.282375,23.205807;113.282647,23.208025;113.282902,23.209555;113.283180,23.210513;113.283451,23.211301;113.283728,23.212102;113.284319,23.214690;113.284774,23.216394;113.285066,23.217397;113.285474,23.218366;113.286070,23.219428;113.287038,23.220919;113.287376,23.221645;113.287713,23.222367;113.288217,23.223805;113.288637,23.225007;113.289018,23.226014;113.289158,23.226921;113.289293,23.228685;113.289344,23.230395;113.289319,23.231847;113.289242,23.236973;113.289243,23.237460',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': '0600',\n",
       "      'end_time': '2330',\n",
       "      'via_num': '12',\n",
       "      'via_stops': [{'name': '海珠广场',\n",
       "        'id': '440100023308013',\n",
       "        'location': '113.265344,23.114796'},\n",
       "       {'name': '公园前',\n",
       "        'id': '440100023308014',\n",
       "        'location': '113.264315,23.125446'},\n",
       "       {'name': '纪念堂',\n",
       "        'id': '440100023308015',\n",
       "        'location': '113.263431,23.132179'},\n",
       "       {'name': '越秀公园',\n",
       "        'id': '440100023308016',\n",
       "        'location': '113.261366,23.140041'},\n",
       "       {'name': '广州火车站',\n",
       "        'id': '440100023308017',\n",
       "        'location': '113.256603,23.148143'},\n",
       "       {'name': '三元里',\n",
       "        'id': '440100023308018',\n",
       "        'location': '113.256851,23.159402'},\n",
       "       {'name': '飞翔公园',\n",
       "        'id': '440100023308019',\n",
       "        'location': '113.263752,23.168915'},\n",
       "       {'name': '白云公园',\n",
       "        'id': '440100023308020',\n",
       "        'location': '113.270966,23.181613'},\n",
       "       {'name': '白云文化广场',\n",
       "        'id': '440100023308021',\n",
       "        'location': '113.275602,23.189574'},\n",
       "       {'name': '萧岗',\n",
       "        'id': '440100023308022',\n",
       "        'location': '113.280697,23.198580'},\n",
       "       {'name': '江夏',\n",
       "        'id': '440100023308023',\n",
       "        'location': '113.283451,23.211301'},\n",
       "       {'name': '黄边',\n",
       "        'id': '440100023308024',\n",
       "        'location': '113.287376,23.221645'}]}]},\n",
       "   'entrance': {'name': 'E口', 'location': '113.269882,23.105375'},\n",
       "   'exit': {'name': 'H口', 'location': '113.288910,23.235960'},\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.289246,23.237457',\n",
       "    'destination': '113.286179,23.235790',\n",
       "    'distance': '524',\n",
       "    'duration': '449',\n",
       "    'steps': [{'instruction': '步行248米右转',\n",
       "      'road': [],\n",
       "      'distance': '248',\n",
       "      'duration': [],\n",
       "      'polyline': '113.289246,23.237457;113.289246,23.237461;113.289238,23.237600;113.289009,23.237604;113.289009,23.237553;113.289009,23.237440;113.289001,23.237062;113.288910,23.237062;113.288910,23.236107;113.288910,23.235964;113.288910,23.235786',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿华英路步行276米',\n",
       "      'road': '华英路',\n",
       "      'distance': '276',\n",
       "      'duration': [],\n",
       "      'polyline': '113.288910,23.235781;113.288765,23.235781;113.288696,23.235781;113.288544,23.235781;113.287025,23.235790;113.286819,23.235790;113.286652,23.235790;113.286179,23.235790',\n",
       "      'action': [],\n",
       "      'assistant_action': []}]},\n",
       "   'bus': {'buslines': []},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}}],\n",
       " [{'taxi': [],\n",
       "   'walking': {'origin': '113.267899,23.121342',\n",
       "    'destination': '113.267654,23.120182',\n",
       "    'distance': '382',\n",
       "    'duration': '327',\n",
       "    'steps': [{'instruction': '沿步行街步行120米右转',\n",
       "      'road': '步行街',\n",
       "      'distance': '120',\n",
       "      'duration': [],\n",
       "      'polyline': '113.267899,23.121342;113.268509,23.121468;113.269058,23.121580',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿北京路步行74米往前走',\n",
       "      'road': '北京路',\n",
       "      'distance': '74',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269058,23.121580;113.269112,23.120907',\n",
       "      'action': '往前走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '步行32米右转',\n",
       "      'road': [],\n",
       "      'distance': '32',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269112,23.120903;113.269051,23.120625',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿北京路步行19米向左前方行走',\n",
       "      'road': '北京路',\n",
       "      'distance': '19',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269051,23.120621;113.268967,23.120647;113.268875,23.120647',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿大南路步行137米到达大南路',\n",
       "      'road': '大南路',\n",
       "      'distance': '137',\n",
       "      'duration': [],\n",
       "      'polyline': '113.268867,23.120647;113.268494,23.120373;113.268387,23.120317;113.267761,23.120205;113.267654,23.120182',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达大南路'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '大南路',\n",
       "       'id': '440100016948012',\n",
       "       'location': '113.267647,23.120178'},\n",
       "      'arrival_stop': {'name': '东平南路',\n",
       "       'id': '440100016948031',\n",
       "       'location': '113.308670,23.239080'},\n",
       "      'name': '66路(泮塘总站--东平总站)',\n",
       "      'id': '440100016948',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '16487',\n",
       "      'duration': '2574',\n",
       "      'polyline': '113.267647,23.120178;113.267761,23.120199;113.268265,23.120287;113.268379,23.120314;113.268486,23.120365;113.268867,23.120655;113.269012,23.120790;113.269043,23.120819;113.269112,23.120903;113.269417,23.121067;113.269814,23.121267;113.270081,23.121410;113.270187,23.121489;113.270523,23.121693;113.270943,23.121931;113.271423,23.122135;113.271858,23.122282;113.271988,23.122332;113.272064,23.122360;113.271950,23.122814;113.271820,23.123159;113.271500,23.124035;113.271423,23.124245;113.271355,23.124449;113.271324,23.124531;113.271301,23.124626;113.271156,23.125151;113.271072,23.125650;113.271576,23.125719;113.271904,23.125797;113.272232,23.125919;113.272850,23.126160;113.272903,23.126270;113.272720,23.126617;113.272652,23.126749;113.272453,23.127081;113.272452,23.127079;113.272339,23.127274;113.272205,23.127543;113.272114,23.127786;113.271949,23.128299;113.271858,23.128589;113.271727,23.128971;113.271632,23.129249;113.271558,23.129492;113.271510,23.129709;113.271476,23.129952;113.271454,23.130230;113.271454,23.130408;113.271480,23.130616;113.271563,23.130998;113.271593,23.131202;113.271701,23.132274;113.271749,23.133021;113.271775,23.133611;113.271823,23.134527;113.271862,23.135347;113.271866,23.135469;113.271884,23.135699;113.271923,23.135872;113.272001,23.136098;113.272096,23.136293;113.272174,23.136406;113.272253,23.136497;113.272934,23.137144;113.272938,23.137144;113.272934,23.137144;113.272999,23.137205;113.273125,23.137322;113.273746,23.137925;113.274184,23.138342;113.274319,23.138472;113.274948,23.139141;113.274996,23.139188;113.275043,23.139349;113.275039,23.139484;113.275013,23.139727;113.274670,23.140595;113.274544,23.140864;113.274423,23.141076;113.273806,23.141858;113.273702,23.142109;113.273681,23.142235;113.273746,23.142678;113.273845,23.143234;113.273971,23.143694;113.273976,23.143689;113.274071,23.144041;113.274253,23.144761;113.274345,23.145100;113.274392,23.145273;113.274466,23.145521;113.274479,23.145612;113.274497,23.145820;113.274457,23.146094;113.274332,23.146463;113.274180,23.146780;113.274128,23.146931;113.274093,23.147088;113.274084,23.147261;113.274071,23.148190;113.274058,23.149505;113.274058,23.149501;113.274049,23.149983;113.274041,23.150148;113.274010,23.150308;113.273950,23.150477;113.273889,23.150595;113.273338,23.151484;113.273331,23.151480;113.273331,23.151484;113.272949,23.152100;113.272659,23.152573;113.272568,23.152760;113.272499,23.152943;113.272446,23.153246;113.272408,23.153603;113.272362,23.153803;113.272308,23.153944;113.272118,23.154293;113.272003,23.154457;113.271812,23.154680;113.271683,23.154800;113.271324,23.155069;113.271179,23.155174;113.270737,23.155512;113.270248,23.155865;113.269768,23.156239;113.269661,23.156334;113.269608,23.156410;113.269554,23.156507;113.269508,23.156662;113.269508,23.156771;113.269524,23.156876;113.269562,23.157005;113.270073,23.158173;113.270241,23.158506;113.270546,23.159180;113.270912,23.160036;113.271339,23.161037;113.271538,23.161425;113.271751,23.161871;113.272003,23.162422;113.272148,23.162756;113.272385,23.163200;113.272583,23.163647;113.272705,23.163853;113.272766,23.163961;113.272781,23.164022;113.272820,23.164093;113.273155,23.164778;113.273544,23.165586;113.273651,23.165865;113.273766,23.166210;113.273888,23.166716;113.273926,23.167053;113.273994,23.168228;113.274025,23.168812;113.274071,23.169170;113.274101,23.169302;113.274193,23.169649;113.274361,23.170164;113.274498,23.170547;113.274696,23.171062;113.274692,23.171059;113.274766,23.171254;113.275347,23.172782;113.275451,23.173034;113.275451,23.173116;113.275477,23.173177;113.275929,23.174266;113.276089,23.174553;113.276324,23.174922;113.276710,23.175538;113.276836,23.175720;113.276888,23.175803;113.277044,23.176155;113.277131,23.176311;113.277300,23.176710;113.277574,23.177504;113.277734,23.177947;113.277908,23.178351;113.277977,23.178494;113.278116,23.178885;113.278333,23.179110;113.278954,23.181055;113.278984,23.181150;113.279314,23.182188;113.279405,23.182491;113.279405,23.182487;113.279453,23.182648;113.279553,23.182969;113.279705,23.183416;113.279757,23.183537;113.279839,23.183668;113.279935,23.183785;113.280174,23.183993;113.280234,23.184076;113.280299,23.184188;113.280343,23.184310;113.280382,23.184510;113.280495,23.185174;113.280525,23.185291;113.280629,23.185512;113.280777,23.185694;113.280946,23.185803;113.281484,23.186102;113.281658,23.186589;113.281649,23.186814;113.281649,23.186810;113.281641,23.186966;113.281680,23.187183;113.281680,23.187292;113.281654,23.187465;113.281610,23.187591;113.281845,23.188112;113.282049,23.188615;113.282279,23.189288;113.282856,23.191094;113.283025,23.191532;113.283277,23.192036;113.283333,23.192135;113.283659,23.192773;113.283880,23.193216;113.284206,23.193859;113.284514,23.194410;113.284735,23.194718;113.285004,23.195013;113.285130,23.195148;113.285386,23.195408;113.286037,23.196094;113.286185,23.196272;113.286319,23.196445;113.286515,23.196749;113.286623,23.196966;113.286723,23.197192;113.286884,23.197513;113.286970,23.197860;113.287088,23.198442;113.287183,23.198889;113.287270,23.199466;113.287387,23.200017;113.287496,23.200499;113.287565,23.200786;113.287567,23.200790;113.287567,23.200794;113.287567,23.200790;113.287598,23.200933;113.287888,23.202023;113.288048,23.202679;113.287971,23.202768;113.287949,23.202795;113.288048,23.203125;113.288086,23.203274;113.288277,23.204002;113.288452,23.204718;113.288452,23.204714;113.288490,23.204840;113.288704,23.205656;113.288765,23.205885;113.288887,23.206388;113.289032,23.206909;113.289246,23.207678;113.289421,23.208202;113.289642,23.208776;113.289665,23.208811;113.289909,23.209335;113.290230,23.209909;113.290451,23.210268;113.291016,23.211084;113.291115,23.211220;113.291412,23.211653;113.291710,23.212067;113.291893,23.212345;113.292381,23.213037;113.292542,23.213268;113.292648,23.213415;113.292847,23.213690;113.293007,23.213915;113.293137,23.214111;113.293922,23.215221;113.294205,23.215569;113.294464,23.215595;113.294510,23.215630;113.294685,23.215755;113.294975,23.215960;113.295052,23.216028;113.295616,23.216827;113.295715,23.216957;113.295822,23.217154;113.295853,23.217222;113.295876,23.217287;113.295952,23.217573;113.296021,23.217842;113.296036,23.217934;113.296028,23.218115;113.296249,23.218502;113.296608,23.219011;113.296768,23.219276;113.297371,23.220127;113.300240,23.224203;113.300873,23.225096;113.300934,23.225191;113.301224,23.225592;113.301819,23.226461;113.302002,23.226711;113.302292,23.227121;113.302521,23.227457;113.302521,23.227453;113.302589,23.227535;113.302734,23.227757;113.303139,23.228319;113.303383,23.228685;113.303780,23.229235;113.304123,23.229736;113.304291,23.229969;113.304291,23.229973;113.304291,23.229979;113.304291,23.229973;113.304451,23.230204;113.304802,23.230673;113.305496,23.231670;113.306053,23.232464;113.306206,23.232681;113.306572,23.233202;113.306915,23.233698;113.307076,23.233925;113.307663,23.234739;113.308540,23.235985;113.310414,23.238642;113.312077,23.241052;113.311965,23.241087;113.308517,23.236160;113.308083,23.236324;113.308113,23.236635;113.308159,23.236961;113.308159,23.236958;113.308258,23.237682;113.308304,23.237896;113.308334,23.238024;113.308403,23.238173;113.308533,23.238438;113.308578,23.238602;113.308640,23.238825;113.308670,23.239027;113.308670,23.239080',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': [],\n",
       "      'end_time': [],\n",
       "      'via_num': '18',\n",
       "      'via_stops': [{'name': '文德路',\n",
       "        'id': '440100016948013',\n",
       "        'location': '113.271324,23.124531'},\n",
       "       {'name': '仓边路',\n",
       "        'id': '440100016948014',\n",
       "        'location': '113.272453,23.127081'},\n",
       "       {'name': '小北花圈',\n",
       "        'id': '440100016948015',\n",
       "        'location': '113.272934,23.137144'},\n",
       "       {'name': '童心南',\n",
       "        'id': '440100016948016',\n",
       "        'location': '113.273971,23.143694'},\n",
       "       {'name': '下塘西路',\n",
       "        'id': '440100016948017',\n",
       "        'location': '113.274058,23.149505'},\n",
       "       {'name': '老干大学',\n",
       "        'id': '440100016948018',\n",
       "        'location': '113.273338,23.151484'},\n",
       "       {'name': '雕塑公园',\n",
       "        'id': '440100016948019',\n",
       "        'location': '113.271324,23.155069'},\n",
       "       {'name': '柯子岭',\n",
       "        'id': '440100016948020',\n",
       "        'location': '113.272003,23.162422'},\n",
       "       {'name': '盈翠华庭',\n",
       "        'id': '440100016948021',\n",
       "        'location': '113.274696,23.171062'},\n",
       "       {'name': '广州体育馆',\n",
       "        'id': '440100016948022',\n",
       "        'location': '113.279405,23.182491'},\n",
       "       {'name': '白云国际会议中心',\n",
       "        'id': '440100016948023',\n",
       "        'location': '113.281649,23.186814'},\n",
       "       {'name': '广外',\n",
       "        'id': '440100016948042',\n",
       "        'location': '113.287565,23.200786'},\n",
       "       {'name': '黄石东路口',\n",
       "        'id': '440100016948025',\n",
       "        'location': '113.288452,23.204718'},\n",
       "       {'name': '陈田村',\n",
       "        'id': '440100016948026',\n",
       "        'location': '113.289665,23.208811'},\n",
       "       {'name': '元下田',\n",
       "        'id': '440100016948027',\n",
       "        'location': '113.295876,23.217287'},\n",
       "       {'name': '永泰新村口',\n",
       "        'id': '440100016948028',\n",
       "        'location': '113.302521,23.227457'},\n",
       "       {'name': '永泰广场',\n",
       "        'id': '440100016948029',\n",
       "        'location': '113.304291,23.229969'},\n",
       "       {'name': '永泰客运站',\n",
       "        'id': '440100016948030',\n",
       "        'location': '113.308159,23.236961'}]}]},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.308670,23.239067',\n",
       "    'destination': '113.308670,23.239016',\n",
       "    'distance': '6',\n",
       "    'duration': '5',\n",
       "    'steps': [{'instruction': '沿东平南路步行6米到达东平南路',\n",
       "      'road': '东平南路',\n",
       "      'distance': '6',\n",
       "      'duration': [],\n",
       "      'polyline': '113.308670,23.239067;113.308670,23.239033;113.308670,23.239016',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达东平南路'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '东平南路',\n",
       "       'id': '440100016016039',\n",
       "       'location': '113.308670,23.239012'},\n",
       "      'arrival_stop': {'name': '广州市第八医院',\n",
       "       'id': '440100016016047',\n",
       "       'location': '113.285515,23.234762'},\n",
       "      'name': '663路(嘉禾长湴街总站--嘉禾长湴街总站)',\n",
       "      'id': '440100016016',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '3170',\n",
       "      'duration': '1555',\n",
       "      'polyline': '113.308670,23.239012;113.308663,23.239010;113.308637,23.238824;113.308581,23.238602;113.308533,23.238437;113.308733,23.238398;113.309036,23.238312;113.309510,23.238125;113.308685,23.236962;113.308546,23.236827;113.308299,23.236667;113.308099,23.236506;113.308034,23.236458;113.307934,23.236419;113.307786,23.236393;113.307318,23.236515;113.307083,23.236554;113.306667,23.236580;113.306489,23.236593;113.306293,23.236593;113.306068,23.236576;113.305569,23.236467;113.305295,23.236389;113.304861,23.236198;113.304800,23.236168;113.304635,23.236081;113.304366,23.235933;113.304275,23.235829;113.304262,23.235799;113.304268,23.235798;113.304054,23.235168;113.303650,23.235142;113.303566,23.235126;113.303406,23.235048;113.303291,23.235031;113.302773,23.235048;113.302284,23.235090;113.302216,23.235100;113.301147,23.235409;113.300720,23.235529;113.300095,23.235668;113.299446,23.235802;113.299194,23.235855;113.298988,23.235893;113.298073,23.235992;113.297485,23.236038;113.297417,23.236046;113.296249,23.236059;113.296082,23.236059;113.295677,23.236067;113.294579,23.235960;113.293495,23.235821;113.293289,23.235783;113.293286,23.235781;113.292904,23.235707;113.292305,23.235534;113.291610,23.235595;113.291554,23.235621;113.291454,23.235720;113.291350,23.235777;113.291016,23.235825;113.290903,23.235833;113.290903,23.236081;113.290903,23.236918;113.290916,23.237639;113.290760,23.237639;113.290760,23.236719;113.290760,23.236454;113.290760,23.236237;113.290760,23.236081;113.290755,23.235803;113.290165,23.235781;113.289996,23.235781;113.289805,23.235781;113.289809,23.235781;113.289810,23.235783;113.289589,23.235783;113.287048,23.235794;113.286934,23.235794;113.286819,23.235794;113.286659,23.235794;113.286072,23.235794;113.285515,23.235802;113.285461,23.235647;113.285500,23.234840;113.285515,23.234762',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': [],\n",
       "      'end_time': [],\n",
       "      'via_num': '7',\n",
       "      'via_stops': [{'name': '永泰客运站',\n",
       "        'id': '440100016016040',\n",
       "        'location': '113.306667,23.236580'},\n",
       "       {'name': '集贤苑路口',\n",
       "        'id': '440100016016041',\n",
       "        'location': '113.304262,23.235799'},\n",
       "       {'name': '集贤苑教师新村',\n",
       "        'id': '440100016016042',\n",
       "        'location': '113.301147,23.235409'},\n",
       "       {'name': '百顺北路',\n",
       "        'id': '440100016016043',\n",
       "        'location': '113.296249,23.236059'},\n",
       "       {'name': '华师附中新世界学校',\n",
       "        'id': '440100016016044',\n",
       "        'location': '113.293289,23.235783'},\n",
       "       {'name': '嘉禾望岗公交枢纽站',\n",
       "        'id': '440100016016045',\n",
       "        'location': '113.290760,23.236454'},\n",
       "       {'name': '地铁嘉禾望岗站',\n",
       "        'id': '440100016016046',\n",
       "        'location': '113.289805,23.235781'}]}]},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.285530,23.234762',\n",
       "    'destination': '113.286171,23.235794',\n",
       "    'distance': '187',\n",
       "    'duration': '160',\n",
       "    'steps': [{'instruction': '沿联边彭上德兴路步行115米右转',\n",
       "      'road': '联边彭上德兴路',\n",
       "      'distance': '115',\n",
       "      'duration': [],\n",
       "      'polyline': '113.285530,23.234762;113.285522,23.234831;113.285461,23.235647;113.285461,23.235807',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿华英路步行72米',\n",
       "      'road': '华英路',\n",
       "      'distance': '72',\n",
       "      'duration': [],\n",
       "      'polyline': '113.285461,23.235807;113.285660,23.235807;113.286064,23.235794;113.286171,23.235794',\n",
       "      'action': [],\n",
       "      'assistant_action': []}]},\n",
       "   'bus': {'buslines': []},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}}],\n",
       " [{'taxi': [],\n",
       "   'walking': {'origin': '113.267899,23.121342',\n",
       "    'destination': '113.267654,23.120182',\n",
       "    'distance': '382',\n",
       "    'duration': '327',\n",
       "    'steps': [{'instruction': '沿步行街步行120米右转',\n",
       "      'road': '步行街',\n",
       "      'distance': '120',\n",
       "      'duration': [],\n",
       "      'polyline': '113.267899,23.121342;113.268509,23.121468;113.269058,23.121580',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿北京路步行74米往前走',\n",
       "      'road': '北京路',\n",
       "      'distance': '74',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269058,23.121580;113.269112,23.120907',\n",
       "      'action': '往前走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '步行32米右转',\n",
       "      'road': [],\n",
       "      'distance': '32',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269112,23.120903;113.269051,23.120625',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿北京路步行19米向左前方行走',\n",
       "      'road': '北京路',\n",
       "      'distance': '19',\n",
       "      'duration': [],\n",
       "      'polyline': '113.269051,23.120621;113.268967,23.120647;113.268875,23.120647',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿大南路步行137米到达大南路',\n",
       "      'road': '大南路',\n",
       "      'distance': '137',\n",
       "      'duration': [],\n",
       "      'polyline': '113.268867,23.120647;113.268494,23.120373;113.268387,23.120317;113.267761,23.120205;113.267654,23.120182',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达大南路'}]},\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '大南路',\n",
       "       'id': '440100016948012',\n",
       "       'location': '113.267647,23.120178'},\n",
       "      'arrival_stop': {'name': '白云国际会议中心',\n",
       "       'id': '440100016948023',\n",
       "       'location': '113.281649,23.186814'},\n",
       "      'name': '66路(泮塘总站--东平总站)',\n",
       "      'id': '440100016948',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '8290',\n",
       "      'duration': '1747',\n",
       "      'polyline': '113.267647,23.120178;113.267761,23.120199;113.268265,23.120287;113.268379,23.120314;113.268486,23.120365;113.268867,23.120655;113.269012,23.120790;113.269043,23.120819;113.269112,23.120903;113.269417,23.121067;113.269814,23.121267;113.270081,23.121410;113.270187,23.121489;113.270523,23.121693;113.270943,23.121931;113.271423,23.122135;113.271858,23.122282;113.271988,23.122332;113.272064,23.122360;113.271950,23.122814;113.271820,23.123159;113.271500,23.124035;113.271423,23.124245;113.271355,23.124449;113.271324,23.124531;113.271301,23.124626;113.271156,23.125151;113.271072,23.125650;113.271576,23.125719;113.271904,23.125797;113.272232,23.125919;113.272850,23.126160;113.272903,23.126270;113.272720,23.126617;113.272652,23.126749;113.272453,23.127081;113.272452,23.127079;113.272339,23.127274;113.272205,23.127543;113.272114,23.127786;113.271949,23.128299;113.271858,23.128589;113.271727,23.128971;113.271632,23.129249;113.271558,23.129492;113.271510,23.129709;113.271476,23.129952;113.271454,23.130230;113.271454,23.130408;113.271480,23.130616;113.271563,23.130998;113.271593,23.131202;113.271701,23.132274;113.271749,23.133021;113.271775,23.133611;113.271823,23.134527;113.271862,23.135347;113.271866,23.135469;113.271884,23.135699;113.271923,23.135872;113.272001,23.136098;113.272096,23.136293;113.272174,23.136406;113.272253,23.136497;113.272934,23.137144;113.272938,23.137144;113.272934,23.137144;113.272999,23.137205;113.273125,23.137322;113.273746,23.137925;113.274184,23.138342;113.274319,23.138472;113.274948,23.139141;113.274996,23.139188;113.275043,23.139349;113.275039,23.139484;113.275013,23.139727;113.274670,23.140595;113.274544,23.140864;113.274423,23.141076;113.273806,23.141858;113.273702,23.142109;113.273681,23.142235;113.273746,23.142678;113.273845,23.143234;113.273971,23.143694;113.273976,23.143689;113.274071,23.144041;113.274253,23.144761;113.274345,23.145100;113.274392,23.145273;113.274466,23.145521;113.274479,23.145612;113.274497,23.145820;113.274457,23.146094;113.274332,23.146463;113.274180,23.146780;113.274128,23.146931;113.274093,23.147088;113.274084,23.147261;113.274071,23.148190;113.274058,23.149505;113.274058,23.149501;113.274049,23.149983;113.274041,23.150148;113.274010,23.150308;113.273950,23.150477;113.273889,23.150595;113.273338,23.151484;113.273331,23.151480;113.273331,23.151484;113.272949,23.152100;113.272659,23.152573;113.272568,23.152760;113.272499,23.152943;113.272446,23.153246;113.272408,23.153603;113.272362,23.153803;113.272308,23.153944;113.272118,23.154293;113.272003,23.154457;113.271812,23.154680;113.271683,23.154800;113.271324,23.155069;113.271179,23.155174;113.270737,23.155512;113.270248,23.155865;113.269768,23.156239;113.269661,23.156334;113.269608,23.156410;113.269554,23.156507;113.269508,23.156662;113.269508,23.156771;113.269524,23.156876;113.269562,23.157005;113.270073,23.158173;113.270241,23.158506;113.270546,23.159180;113.270912,23.160036;113.271339,23.161037;113.271538,23.161425;113.271751,23.161871;113.272003,23.162422;113.272148,23.162756;113.272385,23.163200;113.272583,23.163647;113.272705,23.163853;113.272766,23.163961;113.272781,23.164022;113.272820,23.164093;113.273155,23.164778;113.273544,23.165586;113.273651,23.165865;113.273766,23.166210;113.273888,23.166716;113.273926,23.167053;113.273994,23.168228;113.274025,23.168812;113.274071,23.169170;113.274101,23.169302;113.274193,23.169649;113.274361,23.170164;113.274498,23.170547;113.274696,23.171062;113.274692,23.171059;113.274766,23.171254;113.275347,23.172782;113.275451,23.173034;113.275451,23.173116;113.275477,23.173177;113.275929,23.174266;113.276089,23.174553;113.276324,23.174922;113.276710,23.175538;113.276836,23.175720;113.276888,23.175803;113.277044,23.176155;113.277131,23.176311;113.277300,23.176710;113.277574,23.177504;113.277734,23.177947;113.277908,23.178351;113.277977,23.178494;113.278116,23.178885;113.278333,23.179110;113.278954,23.181055;113.278984,23.181150;113.279314,23.182188;113.279405,23.182491;113.279405,23.182487;113.279453,23.182648;113.279553,23.182969;113.279705,23.183416;113.279757,23.183537;113.279839,23.183668;113.279935,23.183785;113.280174,23.183993;113.280234,23.184076;113.280299,23.184188;113.280343,23.184310;113.280382,23.184510;113.280495,23.185174;113.280525,23.185291;113.280629,23.185512;113.280777,23.185694;113.280946,23.185803;113.281484,23.186102;113.281658,23.186589;113.281649,23.186814',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': [],\n",
       "      'end_time': [],\n",
       "      'via_num': '10',\n",
       "      'via_stops': [{'name': '文德路',\n",
       "        'id': '440100016948013',\n",
       "        'location': '113.271324,23.124531'},\n",
       "       {'name': '仓边路',\n",
       "        'id': '440100016948014',\n",
       "        'location': '113.272453,23.127081'},\n",
       "       {'name': '小北花圈',\n",
       "        'id': '440100016948015',\n",
       "        'location': '113.272934,23.137144'},\n",
       "       {'name': '童心南',\n",
       "        'id': '440100016948016',\n",
       "        'location': '113.273971,23.143694'},\n",
       "       {'name': '下塘西路',\n",
       "        'id': '440100016948017',\n",
       "        'location': '113.274058,23.149505'},\n",
       "       {'name': '老干大学',\n",
       "        'id': '440100016948018',\n",
       "        'location': '113.273338,23.151484'},\n",
       "       {'name': '雕塑公园',\n",
       "        'id': '440100016948019',\n",
       "        'location': '113.271324,23.155069'},\n",
       "       {'name': '柯子岭',\n",
       "        'id': '440100016948020',\n",
       "        'location': '113.272003,23.162422'},\n",
       "       {'name': '盈翠华庭',\n",
       "        'id': '440100016948021',\n",
       "        'location': '113.274696,23.171062'},\n",
       "       {'name': '广州体育馆',\n",
       "        'id': '440100016948022',\n",
       "        'location': '113.279405,23.182491'}]}]},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': [],\n",
       "   'bus': {'buslines': [{'departure_stop': {'name': '白云国际会议中心',\n",
       "       'id': '440100016119052',\n",
       "       'location': '113.281647,23.186817'},\n",
       "      'arrival_stop': {'name': '嘉禾望岗公交枢纽站',\n",
       "       'id': '440100016119045',\n",
       "       'location': '113.287865,23.238033'},\n",
       "      'name': '664路(白云文化广场总站--石马总站)',\n",
       "      'id': '440100016119',\n",
       "      'type': '普通公交线路',\n",
       "      'distance': '6838',\n",
       "      'duration': '1953',\n",
       "      'polyline': '113.281647,23.186817;113.281647,23.186813;113.281616,23.186945;113.281677,23.187241;113.281639,23.187645;113.281769,23.187933;113.282043,23.188616;113.282272,23.189289;113.282852,23.191093;113.282967,23.191380;113.282967,23.191385;113.282967,23.191380;113.283020,23.191534;113.283279,23.192036;113.283333,23.192135;113.283882,23.193216;113.284203,23.193857;113.284515,23.194408;113.284737,23.194717;113.285004,23.195013;113.285385,23.195410;113.286118,23.196194;113.286293,23.196421;113.286514,23.196749;113.286682,23.197100;113.286797,23.197422;113.286888,23.197540;113.286972,23.197861;113.287086,23.198442;113.287186,23.198889;113.287193,23.198919;113.287254,23.199400;113.287300,23.199591;113.287094,23.199879;113.287079,23.199949;113.287003,23.200090;113.286812,23.200369;113.286575,23.200628;113.286461,23.200743;113.286201,23.200930;113.285873,23.201212;113.285629,23.201353;113.284889,23.201784;113.284698,23.201889;113.284393,23.202063;113.283974,23.202322;113.283821,23.202423;113.283630,23.202541;113.283112,23.202869;113.282684,23.203125;113.282318,23.203320;113.282005,23.203480;113.281433,23.203730;113.280907,23.203911;113.280319,23.204098;113.280167,23.204231;113.280106,23.204311;113.280067,23.204370;113.280029,23.204500;113.280029,23.204596;113.280441,23.205082;113.280617,23.205299;113.280746,23.205524;113.280983,23.205959;113.281082,23.206133;113.281113,23.206181;113.281128,23.206211;113.281120,23.206211;113.281136,23.206234;113.281555,23.207027;113.281784,23.207474;113.281868,23.207636;113.282089,23.208042;113.282219,23.208294;113.282310,23.208481;113.282410,23.208658;113.282593,23.209015;113.282669,23.209162;113.282799,23.209440;113.282936,23.209787;113.283005,23.210022;113.283051,23.210199;113.283104,23.210434;113.283325,23.211357;113.283348,23.211439;113.283524,23.212067;113.283653,23.212540;113.283707,23.212822;113.283813,23.213278;113.283882,23.213840;113.283943,23.214111;113.283966,23.214222;113.284096,23.214735;113.284180,23.215050;113.284256,23.215313;113.284454,23.215893;113.284843,23.217026;113.285065,23.217669;113.285095,23.217773;113.285301,23.218182;113.285545,23.218594;113.285759,23.218971;113.285759,23.218967;113.286018,23.219395;113.286827,23.220760;113.287086,23.221184;113.287224,23.221453;113.287361,23.221710;113.287384,23.221785;113.287498,23.222031;113.287651,23.222353;113.287727,23.222523;113.287834,23.222818;113.288071,23.223455;113.288696,23.224977;113.288727,23.225096;113.289482,23.227158;113.289597,23.227465;113.289787,23.227915;113.289810,23.227987;113.289902,23.228277;113.290009,23.228594;113.290611,23.230278;113.290741,23.230659;113.290825,23.231037;113.290871,23.231329;113.290886,23.231615;113.290909,23.231779;113.290909,23.232227;113.290909,23.233662;113.290909,23.234314;113.290909,23.234318;113.290909,23.234322;113.290901,23.234331;113.290901,23.234327;113.290901,23.234653;113.290901,23.235270;113.290901,23.235695;113.290901,23.235834;113.290901,23.236917;113.290916,23.237764;113.290916,23.237930;113.290901,23.238428;113.290749,23.238520;113.290474,23.238482;113.289566,23.238325;113.288177,23.238091;113.287865,23.238033',\n",
       "      'bustimetag': '2',\n",
       "      'start_time': [],\n",
       "      'end_time': [],\n",
       "      'via_num': '9',\n",
       "      'via_stops': [{'name': '白云大道(齐富路口)',\n",
       "        'id': '440100016119049',\n",
       "        'location': '113.282967,23.191380'},\n",
       "       {'name': '广外',\n",
       "        'id': '440100016119053',\n",
       "        'location': '113.287193,23.198919'},\n",
       "       {'name': '黄石东',\n",
       "        'id': '440100016119040',\n",
       "        'location': '113.283821,23.202423'},\n",
       "       {'name': '江夏东二路北',\n",
       "        'id': '440100016119012',\n",
       "        'location': '113.281128,23.206211'},\n",
       "       {'name': '地铁江夏站',\n",
       "        'id': '440100016119013',\n",
       "        'location': '113.283104,23.210434'},\n",
       "       {'name': '空港大道中',\n",
       "        'id': '440100016119063',\n",
       "        'location': '113.285759,23.218971'},\n",
       "       {'name': '空港大道',\n",
       "        'id': '440100016119042',\n",
       "        'location': '113.287727,23.222523'},\n",
       "       {'name': '空港大道北',\n",
       "        'id': '440100016119043',\n",
       "        'location': '113.290886,23.231615'},\n",
       "       {'name': '市动物卫生监督所',\n",
       "        'id': '440100016119044',\n",
       "        'location': '113.290909,23.234314'}]}]},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "  {'taxi': [],\n",
       "   'walking': {'origin': '113.287857,23.238039',\n",
       "    'destination': '113.286179,23.235790',\n",
       "    'distance': '458',\n",
       "    'duration': '392',\n",
       "    'steps': [{'instruction': '沿望岗大马路步行12米右转',\n",
       "      'road': '望岗大马路',\n",
       "      'distance': '12',\n",
       "      'duration': [],\n",
       "      'polyline': '113.287857,23.238039;113.287987,23.238056',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '步行13米右转',\n",
       "      'road': [],\n",
       "      'distance': '13',\n",
       "      'duration': [],\n",
       "      'polyline': '113.287987,23.238056;113.288010,23.237947',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿望岗大马路步行127米左转',\n",
       "      'road': '望岗大马路',\n",
       "      'distance': '127',\n",
       "      'duration': [],\n",
       "      'polyline': '113.288010,23.237944;113.287498,23.237852;113.286789,23.237730',\n",
       "      'action': '左转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿望岗高桥东街步行159米向左前方行走',\n",
       "      'road': '望岗高桥东街',\n",
       "      'distance': '159',\n",
       "      'duration': [],\n",
       "      'polyline': '113.286789,23.237726;113.286873,23.236298',\n",
       "      'action': '向左前方行走',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿望岗杨村园一街步行10米右转',\n",
       "      'road': '望岗杨村园一街',\n",
       "      'distance': '10',\n",
       "      'duration': [],\n",
       "      'polyline': '113.286873,23.236294;113.286980,23.236267',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '步行52米右转',\n",
       "      'road': [],\n",
       "      'distance': '52',\n",
       "      'duration': [],\n",
       "      'polyline': '113.286980,23.236263;113.287025,23.235794',\n",
       "      'action': '右转',\n",
       "      'assistant_action': []},\n",
       "     {'instruction': '沿华英路步行85米',\n",
       "      'road': '华英路',\n",
       "      'distance': '85',\n",
       "      'duration': [],\n",
       "      'polyline': '113.287025,23.235790;113.286819,23.235790;113.286652,23.235790;113.286179,23.235790',\n",
       "      'action': [],\n",
       "      'assistant_action': []}]},\n",
       "   'bus': {'buslines': []},\n",
       "   'entrance': [],\n",
       "   'exit': [],\n",
       "   'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r_bus = bus(hnh_key,起始点_北京路,终点_嘉禾,city)\n",
    "r_bus"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 驾车\n",
    "> - 接口简介：驾车路径规划 API 可以规划以小客车、轿车通勤出行的方案，并且返回通勤方案的数据。\n",
    "> - url:https://restapi.amap.com/v3/direction/driving?parameters\n",
    "> - 请求方式:GET\n",
    "> - 请求参数：key,origin,destination为必选，其他可选参考API文档"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "## 数据准备\n",
    "origin = \"广东省广州市从化区中山大学南方学院\"\n",
    "destination = \"广东省广州市从化区从化汽车站\"\n",
    "起始点_中大南方 = geocode(hnh_key,origin)\n",
    "终点_从化汽车站 = geocode(hnh_key,destination)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 驾车路径规划函数\n",
    "def driving(key,origin,destination,originid=None,destinationid=None,origintype=None,destinationtype=None,strategy=10,waypoints=None,avoidpolygons=None,avoidroad=None,province=None,number=None,cartype=0,ferry=None,roadaggregation=None,extensions=None,nosteps=0,sig=None,output=\"JSON\"):\n",
    "    truck_url = \"https://restapi.amap.com/v3/direction/driving?parameters\"\n",
    "    params ={\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"extensions\":extensions,\n",
    "        \"originid\":originid,\n",
    "        \"destinationid\":destinationid,\n",
    "        \"origintype\":origintype,\n",
    "        \"destinationtype\":destinationtype,\n",
    "        \"strategy\":strategy,\n",
    "        \"waypoints\":waypoints,\n",
    "        \"avoidpolygons\":avoidpolygons,\n",
    "        \"avoidroad\":avoidroad,\n",
    "        \"province\":province,\n",
    "        \"number\":number,\n",
    "        \"cartype\":cartype,\n",
    "        \"nosteps\":nosteps,\n",
    "        \"ferry\":ferry,\n",
    "        \"output\":output,\n",
    "        \"sig\":sig\n",
    "    }     \n",
    "    r = requests.get(truck_url,params=params)\n",
    "    result = r.json()['route'][ 'paths'][0]['steps']\n",
    "    a=[]\n",
    "    for i in result:\n",
    "        a.append(i['instruction'])\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'instruction': '向南行驶9米左转',\n",
       "  'orientation': '南',\n",
       "  'distance': '9',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '5',\n",
       "  'polyline': '113.679596,23.632574;113.679596,23.632491',\n",
       "  'action': '左转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '9',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.679596,23.632574;113.679596,23.632491'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向东行驶100米右转',\n",
       "  'orientation': '东',\n",
       "  'distance': '100',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '23',\n",
       "  'polyline': '113.679596,23.632491;113.680582,23.632522',\n",
       "  'action': '右转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '100',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.679596,23.632491;113.680582,23.632522'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向南行驶199米向右前方行驶',\n",
       "  'orientation': '南',\n",
       "  'distance': '199',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '39',\n",
       "  'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838',\n",
       "  'action': '向右前方行驶',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '122',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.680582,23.632522;113.680642,23.632135;113.680668,23.631736;113.680642,23.631589;113.680629,23.631536;113.68059,23.631432'},\n",
       "   {'lcode': [],\n",
       "    'distance': '77',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.68059,23.631432;113.680499,23.631237;113.680399,23.631089;113.680204,23.630838'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向西行驶159米左转',\n",
       "  'orientation': '西',\n",
       "  'distance': '159',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '34',\n",
       "  'polyline': '113.680204,23.630838;113.68003,23.630768;113.67964,23.630634;113.679358,23.630516;113.679197,23.630469;113.678711,23.63036',\n",
       "  'action': '左转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '18',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.680204,23.630838;113.68003,23.630768'},\n",
       "   {'lcode': [],\n",
       "    'distance': '42',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.68003,23.630768;113.67964,23.630634'},\n",
       "   {'lcode': [],\n",
       "    'distance': '48',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.67964,23.630634;113.679358,23.630516;113.679197,23.630469'},\n",
       "   {'lcode': [],\n",
       "    'distance': '51',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.679197,23.630469;113.678711,23.63036'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向南行驶237米左转',\n",
       "  'orientation': '南',\n",
       "  'distance': '237',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '51',\n",
       "  'polyline': '113.678711,23.63036;113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372',\n",
       "  'action': '左转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '113',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.629336'},\n",
       "   {'lcode': [],\n",
       "    'distance': '124',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.678711,23.629336;113.678698,23.629128;113.678663,23.629054;113.678572,23.628984;113.67842,23.628898;113.678364,23.628837;113.678325,23.628772;113.678299,23.628646;113.678273,23.628372'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向东南行驶105米向右前方行驶',\n",
       "  'orientation': '东南',\n",
       "  'distance': '105',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '44',\n",
       "  'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796',\n",
       "  'action': '向右前方行驶',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '43',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.678273,23.628372;113.678572,23.628333;113.678689,23.628303'},\n",
       "   {'lcode': [],\n",
       "    'distance': '62',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.678689,23.628303;113.678845,23.628234;113.679045,23.628069;113.679162,23.62796'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向南行驶393米向右前方行驶',\n",
       "  'orientation': '南',\n",
       "  'distance': '393',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '83',\n",
       "  'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653',\n",
       "  'action': '向右前方行驶',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '72',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.679162,23.62796;113.679214,23.627865;113.679236,23.627773;113.67928,23.627522;113.679288,23.627318'},\n",
       "   {'lcode': [],\n",
       "    'distance': '321',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.679288,23.627318;113.679249,23.626849;113.679184,23.626619;113.679136,23.626493;113.679002,23.62625;113.678937,23.626172;113.678707,23.625972;113.678615,23.625859;113.678529,23.625716;113.678507,23.625634;113.678433,23.625187;113.678424,23.625052;113.678455,23.624931;113.678572,23.624653'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿源富街途径源湖街向西南行驶2.4千米左转',\n",
       "  'orientation': '西南',\n",
       "  'road': '源富街',\n",
       "  'distance': '2352',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '235',\n",
       "  'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.67533,23.620065;113.675239,23.620009;113.6751,23.619896;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786;113.667895,23.617096;113.666341,23.616736;113.665916,23.616649;113.664549,23.616345;113.663585,23.616128;113.663507,23.616107;113.663225,23.616042;113.662569,23.615911;113.662027,23.615803;113.661684,23.615712;113.660404,23.615417',\n",
       "  'action': '左转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '42',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.678572,23.624653;113.678555,23.624505;113.678411,23.624323'},\n",
       "   {'lcode': [],\n",
       "    'distance': '435',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.678411,23.624323;113.677578,23.623789;113.676528,23.623346;113.676354,23.623247;113.676263,23.623147;113.676102,23.62283;113.676037,23.622734;113.675786,23.622474;113.675499,23.62227;113.675412,23.62217;113.675378,23.622083;113.675373,23.621832'},\n",
       "   {'lcode': [],\n",
       "    'distance': '246',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.675373,23.621832;113.675391,23.621606;113.675438,23.621471;113.675538,23.621354;113.675764,23.621176;113.675851,23.621085;113.675898,23.62099;113.675911,23.620851;113.675868,23.62072;113.675786,23.620603;113.675742,23.620543;113.67533,23.620065;113.675239,23.620009'},\n",
       "   {'lcode': [],\n",
       "    'distance': '512',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.675239,23.620009;113.6751,23.619896;113.673919,23.61862;113.673689,23.618429;113.673459,23.618333;113.673216,23.618268;113.671081,23.617786'},\n",
       "   {'lcode': [],\n",
       "    'distance': '334',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.671081,23.617786;113.667895,23.617096'},\n",
       "   {'lcode': [],\n",
       "    'distance': '163',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.667895,23.617096;113.666341,23.616736'},\n",
       "   {'lcode': [],\n",
       "    'distance': '44',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.666341,23.616736;113.665916,23.616649'},\n",
       "   {'lcode': [],\n",
       "    'distance': '244',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.665916,23.616649;113.664549,23.616345;113.663585,23.616128'},\n",
       "   {'lcode': [],\n",
       "    'distance': '8',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.663585,23.616128;113.663507,23.616107'},\n",
       "   {'lcode': [],\n",
       "    'distance': '29',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.663507,23.616107;113.663225,23.616042'},\n",
       "   {'lcode': [],\n",
       "    'distance': '68',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.663225,23.616042;113.662569,23.615911'},\n",
       "   {'lcode': [],\n",
       "    'distance': '93',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.662569,23.615911;113.662027,23.615803;113.661684,23.615712'},\n",
       "   {'lcode': [],\n",
       "    'distance': '134',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.661684,23.615712;113.660404,23.615417'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿龙泉路向东南行驶1.9千米右转',\n",
       "  'orientation': '东南',\n",
       "  'road': '龙泉路',\n",
       "  'distance': '1858',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '174',\n",
       "  'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349;113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891;113.665694,23.606523;113.667018,23.602865;113.667179,23.602465;113.667361,23.601984;113.667465,23.601688;113.667565,23.601437;113.667665,23.601159;113.667773,23.600877;113.667943,23.600412',\n",
       "  'action': '右转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '113',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.660404,23.615417;113.660872,23.61513;113.661315,23.614831'},\n",
       "   {'lcode': [],\n",
       "    'distance': '70',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.661315,23.614831;113.661619,23.614596;113.661667,23.614527;113.661736,23.614349'},\n",
       "   {'lcode': [],\n",
       "    'distance': '23',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.661736,23.614349;113.661797,23.614145'},\n",
       "   {'lcode': [],\n",
       "    'distance': '153',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.661797,23.614145;113.661862,23.614006;113.661914,23.613937;113.662079,23.613789;113.662613,23.613381;113.662756,23.61322;113.662804,23.613142'},\n",
       "   {'lcode': [],\n",
       "    'distance': '626',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.662804,23.613142;113.66434,23.609618;113.664549,23.609128;113.665095,23.607891'},\n",
       "   {'lcode': [],\n",
       "    'distance': '163',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665095,23.607891;113.665694,23.606523'},\n",
       "   {'lcode': [],\n",
       "    'distance': '426',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665694,23.606523;113.667018,23.602865'},\n",
       "   {'lcode': [],\n",
       "    'distance': '47',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667018,23.602865;113.667179,23.602465'},\n",
       "   {'lcode': [],\n",
       "    'distance': '56',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667179,23.602465;113.667361,23.601984'},\n",
       "   {'lcode': [],\n",
       "    'distance': '34',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667361,23.601984;113.667465,23.601688'},\n",
       "   {'lcode': [],\n",
       "    'distance': '29',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667465,23.601688;113.667565,23.601437'},\n",
       "   {'lcode': [],\n",
       "    'distance': '32',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667565,23.601437;113.667665,23.601159'},\n",
       "   {'lcode': [],\n",
       "    'distance': '32',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667665,23.601159;113.667773,23.600877'},\n",
       "   {'lcode': [],\n",
       "    'distance': '54',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667773,23.600877;113.667943,23.600412'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿桃园西路向西南行驶816米靠左',\n",
       "  'orientation': '西南',\n",
       "  'road': '桃园西路',\n",
       "  'distance': '816',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '67',\n",
       "  'polyline': '113.667943,23.600412;113.667322,23.600135;113.666224,23.59964;113.665951,23.599501;113.665777,23.599362;113.665512,23.599089;113.665282,23.598819;113.665252,23.59878;113.665122,23.598633;113.664891,23.598364;113.664753,23.598186;113.664549,23.597865;113.664392,23.597617;113.664067,23.597135;113.663737,23.596775;113.663477,23.596506;113.662235,23.59543',\n",
       "  'action': '靠左',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '71',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667943,23.600412;113.667322,23.600135'},\n",
       "   {'lcode': [],\n",
       "    'distance': '156',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.667322,23.600135;113.666224,23.59964;113.665951,23.599501'},\n",
       "   {'lcode': [],\n",
       "    'distance': '23',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665951,23.599501;113.665777,23.599362'},\n",
       "   {'lcode': [],\n",
       "    'distance': '40',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665777,23.599362;113.665512,23.599089'},\n",
       "   {'lcode': [],\n",
       "    'distance': '37',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665512,23.599089;113.665282,23.598819'},\n",
       "   {'lcode': [],\n",
       "    'distance': '5',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665282,23.598819;113.665252,23.59878'},\n",
       "   {'lcode': [],\n",
       "    'distance': '59',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.665252,23.59878;113.665122,23.598633;113.664891,23.598364'},\n",
       "   {'lcode': [],\n",
       "    'distance': '97',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.664891,23.598364;113.664753,23.598186;113.664549,23.597865;113.664392,23.597617'},\n",
       "   {'lcode': [],\n",
       "    'distance': '115',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.664392,23.597617;113.664067,23.597135;113.663737,23.596775'},\n",
       "   {'lcode': [],\n",
       "    'distance': '39',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.663737,23.596775;113.663477,23.596506'},\n",
       "   {'lcode': [],\n",
       "    'distance': '174',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.663477,23.596506;113.662235,23.59543'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿桃园西路向南行驶2.0千米向右前方行驶',\n",
       "  'orientation': '南',\n",
       "  'road': '桃园西路',\n",
       "  'distance': '1960',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '139',\n",
       "  'polyline': '113.662235,23.59543;113.661554,23.594844;113.661306,23.594601;113.661141,23.59441;113.660903,23.594028;113.660825,23.593885;113.660725,23.593594;113.660543,23.593021;113.660456,23.592799;113.659926,23.591589;113.659826,23.591389;113.659622,23.591046;113.65911,23.590226;113.658819,23.589588;113.65875,23.589397;113.658021,23.587643;113.657813,23.587135;113.657743,23.586931;113.657691,23.586688;113.657548,23.585365;113.657478,23.585156;113.657305,23.58487;113.657114,23.584566;113.657062,23.584449;113.656905,23.583919;113.656879,23.58378;113.656871,23.583676;113.656888,23.583568;113.656979,23.583255;113.657066,23.583025;113.657157,23.582847;113.657378,23.582539;113.657431,23.582439;113.65747,23.582339;113.657483,23.582231;113.657483,23.582105;113.657431,23.580773;113.657396,23.580612;113.657292,23.580304;113.657235,23.580213;113.656723,23.57964;113.656589,23.579484;113.656411,23.579358',\n",
       "  'action': '向右前方行驶',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '95',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.662235,23.59543;113.661554,23.594844'},\n",
       "   {'lcode': [],\n",
       "    'distance': '113',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.661554,23.594844;113.661306,23.594601;113.661141,23.59441;113.660903,23.594028'},\n",
       "   {'lcode': [],\n",
       "    'distance': '143',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.660903,23.594028;113.660825,23.593885;113.660725,23.593594;113.660543,23.593021;113.660456,23.592799'},\n",
       "   {'lcode': [],\n",
       "    'distance': '212',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.660456,23.592799;113.659926,23.591589;113.659826,23.591389;113.659622,23.591046'},\n",
       "   {'lcode': [],\n",
       "    'distance': '182',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.659622,23.591046;113.65911,23.590226;113.658819,23.589588'},\n",
       "   {'lcode': [],\n",
       "    'distance': '21',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.658819,23.589588;113.65875,23.589397'},\n",
       "   {'lcode': [],\n",
       "    'distance': '466',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.65875,23.589397;113.658021,23.587643;113.657813,23.587135;113.657743,23.586931;113.657691,23.586688;113.657548,23.585365'},\n",
       "   {'lcode': [],\n",
       "    'distance': '60',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.657548,23.585365;113.657478,23.585156;113.657305,23.58487'},\n",
       "   {'lcode': [],\n",
       "    'distance': '494',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.657305,23.58487;113.657114,23.584566;113.657062,23.584449;113.656905,23.583919;113.656879,23.58378;113.656871,23.583676;113.656888,23.583568;113.656979,23.583255;113.657066,23.583025;113.657157,23.582847;113.657378,23.582539;113.657431,23.582439;113.65747,23.582339;113.657483,23.582231;113.657483,23.582105;113.657431,23.580773;113.657396,23.580612'},\n",
       "   {'lcode': [],\n",
       "    'distance': '129',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.657396,23.580612;113.657292,23.580304;113.657235,23.580213;113.656723,23.57964'},\n",
       "   {'lcode': [],\n",
       "    'distance': '45',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.656723,23.57964;113.656589,23.579484;113.656411,23.579358'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿石海工业大道向西南行驶1.8千米靠左',\n",
       "  'orientation': '西南',\n",
       "  'road': '石海工业大道',\n",
       "  'distance': '1839',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '131',\n",
       "  'polyline': '113.656411,23.579358;113.65605,23.57931;113.655091,23.579084;113.654913,23.579019;113.654562,23.578845;113.653676,23.578368;113.653429,23.578242;113.652704,23.57786;113.652448,23.5777;113.652001,23.577383;113.651649,23.577105;113.651432,23.576936;113.651076,23.576658;113.650677,23.576332;113.650378,23.576089;113.649674,23.57553;113.649575,23.575447;113.649232,23.575178;113.647405,23.57375;113.647274,23.573637;113.646788,23.573151;113.646606,23.572956;113.646415,23.572773;113.646198,23.572561;113.645959,23.572365;113.645247,23.571862;113.64497,23.571727;113.644878,23.571701;113.644614,23.571671;113.643906,23.571675;113.643503,23.57168;113.643286,23.57168;113.643043,23.571649;113.64293,23.571628;113.642578,23.571506;113.642543,23.571497;113.642322,23.571406;113.64197,23.571224;113.641632,23.570998;113.641428,23.570816',\n",
       "  'action': '靠左',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '36',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.656411,23.579358;113.65605,23.57931'},\n",
       "   {'lcode': [],\n",
       "    'distance': '161',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.65605,23.57931;113.655091,23.579084;113.654913,23.579019;113.654562,23.578845'},\n",
       "   {'lcode': [],\n",
       "    'distance': '104',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.654562,23.578845;113.653676,23.578368'},\n",
       "   {'lcode': [],\n",
       "    'distance': '28',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.653676,23.578368;113.653429,23.578242'},\n",
       "   {'lcode': [],\n",
       "    'distance': '85',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.653429,23.578242;113.652704,23.57786'},\n",
       "   {'lcode': [],\n",
       "    'distance': '89',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.652704,23.57786;113.652448,23.5777;113.652001,23.577383'},\n",
       "   {'lcode': [],\n",
       "    'distance': '47',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.652001,23.577383;113.651649,23.577105'},\n",
       "   {'lcode': [],\n",
       "    'distance': '28',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.651649,23.577105;113.651432,23.576936'},\n",
       "   {'lcode': [],\n",
       "    'distance': '102',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.651432,23.576936;113.651076,23.576658;113.650677,23.576332'},\n",
       "   {'lcode': [],\n",
       "    'distance': '40',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.650677,23.576332;113.650378,23.576089'},\n",
       "   {'lcode': [],\n",
       "    'distance': '94',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.650378,23.576089;113.649674,23.57553'},\n",
       "   {'lcode': [],\n",
       "    'distance': '13',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.649674,23.57553;113.649575,23.575447'},\n",
       "   {'lcode': [],\n",
       "    'distance': '46',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.649575,23.575447;113.649232,23.575178'},\n",
       "   {'lcode': [],\n",
       "    'distance': '244',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.649232,23.575178;113.647405,23.57375'},\n",
       "   {'lcode': [],\n",
       "    'distance': '91',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.647405,23.57375;113.647274,23.573637;113.646788,23.573151'},\n",
       "   {'lcode': [],\n",
       "    'distance': '28',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.646788,23.573151;113.646606,23.572956'},\n",
       "   {'lcode': [],\n",
       "    'distance': '27',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.646606,23.572956;113.646415,23.572773'},\n",
       "   {'lcode': [],\n",
       "    'distance': '156',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.646415,23.572773;113.646198,23.572561;113.645959,23.572365;113.645247,23.571862'},\n",
       "   {'lcode': [],\n",
       "    'distance': '32',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.645247,23.571862;113.64497,23.571727'},\n",
       "   {'lcode': [],\n",
       "    'distance': '109',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.64497,23.571727;113.644878,23.571701;113.644614,23.571671;113.643906,23.571675'},\n",
       "   {'lcode': [],\n",
       "    'distance': '41',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.643906,23.571675;113.643503,23.57168'},\n",
       "   {'lcode': [],\n",
       "    'distance': '210',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.643503,23.57168;113.643286,23.57168;113.643043,23.571649;113.64293,23.571628;113.642578,23.571506;113.642543,23.571497;113.642322,23.571406;113.64197,23.571224;113.641632,23.570998'},\n",
       "   {'lcode': [],\n",
       "    'distance': '28',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.641632,23.570998;113.641428,23.570816'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿政通路向西行驶940米向左前方行驶',\n",
       "  'orientation': '西',\n",
       "  'road': '政通路',\n",
       "  'distance': '940',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '67',\n",
       "  'polyline': '113.641428,23.570816;113.641163,23.570521;113.640955,23.570256;113.640859,23.570152;113.640647,23.569974;113.640399,23.569818;113.638898,23.569002;113.63839,23.568741;113.638047,23.568607;113.637695,23.568524;113.637426,23.568503;113.637205,23.568516;113.636832,23.568581;113.636476,23.568676;113.63533,23.569058;113.633746,23.569614;113.633485,23.569674;113.633247,23.569688',\n",
       "  'action': '向左前方行驶',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '42',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.641428,23.570816;113.641163,23.570521'},\n",
       "   {'lcode': [],\n",
       "    'distance': '51',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.641163,23.570521;113.640955,23.570256;113.640859,23.570152'},\n",
       "   {'lcode': [],\n",
       "    'distance': '238',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.640859,23.570152;113.640647,23.569974;113.640399,23.569818;113.638898,23.569002'},\n",
       "   {'lcode': [],\n",
       "    'distance': '184',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.638898,23.569002;113.63839,23.568741;113.638047,23.568607;113.637695,23.568524;113.637426,23.568503;113.637205,23.568516'},\n",
       "   {'lcode': [],\n",
       "    'distance': '39',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.637205,23.568516;113.636832,23.568581'},\n",
       "   {'lcode': [],\n",
       "    'distance': '37',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.636832,23.568581;113.636476,23.568676'},\n",
       "   {'lcode': [],\n",
       "    'distance': '349',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.636476,23.568676;113.63533,23.569058;113.633746,23.569614;113.633485,23.569674;113.633247,23.569688'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿政通路途径灌村路向西南行驶2.0千米左转',\n",
       "  'orientation': '西南',\n",
       "  'road': '政通路',\n",
       "  'distance': '1983',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '192',\n",
       "  'polyline': '113.63306,23.569683;113.632773,23.569631;113.632374,23.569488;113.631988,23.569314;113.631853,23.569219;113.631793,23.569154;113.631697,23.568993;113.631441,23.568333;113.63128,23.567943;113.63122,23.56783;113.631085,23.567652;113.630942,23.567522;113.630764,23.567383;113.630451,23.567153;113.630109,23.566879;113.629588,23.566454;113.629058,23.565794;113.628924,23.565673;113.628355,23.565169;113.62826,23.565022;113.62806,23.564588;113.627656,23.563945;113.627565,23.563811;113.627409,23.563646;113.626567,23.562999;113.62625,23.562804;113.625955,23.562678;113.624983,23.562361;113.624427,23.562179;113.62349,23.561905;113.623212,23.561766;113.622995,23.561589;113.622652,23.561181;113.622044,23.560521;113.621936,23.560417;113.621766,23.560312;113.62151,23.560221;113.620603,23.560009;113.620221,23.559922;113.619575,23.559753;113.619423,23.55974;113.61918,23.559727;113.618555,23.559796;113.618355,23.559839;113.618247,23.559887',\n",
       "  'action': '左转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '242',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.63306,23.569683;113.632773,23.569631;113.632374,23.569488;113.631988,23.569314;113.631853,23.569219;113.631793,23.569154;113.631697,23.568993;113.631441,23.568333'},\n",
       "   {'lcode': [],\n",
       "    'distance': '46',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.631441,23.568333;113.63128,23.567943'},\n",
       "   {'lcode': [],\n",
       "    'distance': '82',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.63128,23.567943;113.63122,23.56783;113.631085,23.567652;113.630942,23.567522;113.630764,23.567383'},\n",
       "   {'lcode': [],\n",
       "    'distance': '40',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.630764,23.567383;113.630451,23.567153'},\n",
       "   {'lcode': [],\n",
       "    'distance': '46',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.630451,23.567153;113.630109,23.566879'},\n",
       "   {'lcode': [],\n",
       "    'distance': '746',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.630109,23.566879;113.629588,23.566454;113.629058,23.565794;113.628924,23.565673;113.628355,23.565169;113.62826,23.565022;113.62806,23.564588;113.627656,23.563945;113.627565,23.563811;113.627409,23.563646;113.626567,23.562999;113.62625,23.562804;113.625955,23.562678;113.624983,23.562361'},\n",
       "   {'lcode': [],\n",
       "    'distance': '660',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.624983,23.562361;113.624427,23.562179;113.62349,23.561905;113.623212,23.561766;113.622995,23.561589;113.622652,23.561181;113.622044,23.560521;113.621936,23.560417;113.621766,23.560312;113.62151,23.560221;113.620603,23.560009;113.620221,23.559922;113.619575,23.559753;113.619423,23.55974'},\n",
       "   {'lcode': [],\n",
       "    'distance': '24',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.619423,23.55974;113.61918,23.559727'},\n",
       "   {'lcode': [],\n",
       "    'distance': '97',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.61918,23.559727;113.618555,23.559796;113.618355,23.559839;113.618247,23.559887'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿环市东路向西南行驶1.6千米靠左',\n",
       "  'orientation': '西南',\n",
       "  'road': '环市东路',\n",
       "  'distance': '1591',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '136',\n",
       "  'polyline': '113.618142,23.55997;113.617943,23.559766;113.61697,23.558819;113.615729,23.5576;113.61536,23.557222;113.6151,23.556975;113.614913,23.556793;113.614054,23.555933;113.613759,23.555608;113.613372,23.555122;113.613129,23.554688;113.613099,23.554622;113.612826,23.554015;113.612652,23.553555;113.612626,23.553485;113.612609,23.553438;113.612552,23.553286;113.612287,23.552565;113.61207,23.551992;113.611966,23.551771;113.61181,23.551476;113.611554,23.551102;113.611328,23.550846;113.611063,23.55059;113.61046,23.5501;113.609961,23.549688;113.609462,23.549288;113.609206,23.549063;113.608945,23.548802;113.608811,23.548655',\n",
       "  'action': '靠左',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '29',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.618142,23.55997;113.617943,23.559766'},\n",
       "   {'lcode': [],\n",
       "    'distance': '144',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.617943,23.559766;113.61697,23.558819'},\n",
       "   {'lcode': [],\n",
       "    'distance': '185',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.61697,23.558819;113.615729,23.5576'},\n",
       "   {'lcode': [],\n",
       "    'distance': '55',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.615729,23.5576;113.61536,23.557222'},\n",
       "   {'lcode': [],\n",
       "    'distance': '38',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.61536,23.557222;113.6151,23.556975'},\n",
       "   {'lcode': [],\n",
       "    'distance': '27',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.6151,23.556975;113.614913,23.556793'},\n",
       "   {'lcode': [],\n",
       "    'distance': '176',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.614913,23.556793;113.614054,23.555933;113.613759,23.555608'},\n",
       "   {'lcode': [],\n",
       "    'distance': '66',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.613759,23.555608;113.613372,23.555122'},\n",
       "   {'lcode': [],\n",
       "    'distance': '62',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.613372,23.555122;113.613129,23.554688;113.613099,23.554622'},\n",
       "   {'lcode': [],\n",
       "    'distance': '127',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.613099,23.554622;113.612826,23.554015;113.612652,23.553555'},\n",
       "   {'lcode': [],\n",
       "    'distance': '13',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.612652,23.553555;113.612626,23.553485;113.612609,23.553438'},\n",
       "   {'lcode': [],\n",
       "    'distance': '18',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.612609,23.553438;113.612552,23.553286'},\n",
       "   {'lcode': [],\n",
       "    'distance': '83',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.612552,23.553286;113.612287,23.552565'},\n",
       "   {'lcode': [],\n",
       "    'distance': '130',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.612287,23.552565;113.61207,23.551992;113.611966,23.551771;113.61181,23.551476'},\n",
       "   {'lcode': [],\n",
       "    'distance': '207',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.61181,23.551476;113.611554,23.551102;113.611328,23.550846;113.611063,23.55059;113.61046,23.5501'},\n",
       "   {'lcode': [],\n",
       "    'distance': '68',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.61046,23.5501;113.609961,23.549688'},\n",
       "   {'lcode': [],\n",
       "    'distance': '67',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609961,23.549688;113.609462,23.549288'},\n",
       "   {'lcode': [],\n",
       "    'distance': '36',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609462,23.549288;113.609206,23.549063'},\n",
       "   {'lcode': [],\n",
       "    'distance': '39',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609206,23.549063;113.608945,23.548802'},\n",
       "   {'lcode': [],\n",
       "    'distance': '21',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608945,23.548802;113.608811,23.548655'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿环市东路途径小海一桥向南行驶2.1千米靠左',\n",
       "  'orientation': '南',\n",
       "  'road': '环市东路',\n",
       "  'distance': '2121',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '213',\n",
       "  'polyline': '113.608759,23.548572;113.608537,23.548216;113.608403,23.547951;113.608307,23.547665;113.608273,23.547509;113.608234,23.547322;113.60819,23.547031;113.608121,23.54615;113.608082,23.545586;113.608077,23.545451;113.60809,23.545013;113.608142,23.544488;113.60816,23.544405;113.60829,23.543698;113.608312,23.543607;113.608398,23.543199;113.608637,23.542118;113.60875,23.541584;113.608971,23.54053;113.609123,23.5398;113.609323,23.538889;113.609366,23.538637;113.609414,23.538329;113.609449,23.537956;113.609466,23.537539;113.609466,23.537287;113.609427,23.536688;113.609414,23.536536;113.609332,23.536102;113.609123,23.535312;113.608984,23.534909;113.608733,23.534227;113.60862,23.533941;113.608234,23.532986;113.608121,23.532713;113.608008,23.532444;113.607795,23.53191;113.607682,23.531623;113.607244,23.530547;113.606984,23.529922',\n",
       "  'action': '靠左',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '128',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608759,23.548572;113.608537,23.548216;113.608403,23.547951;113.608307,23.547665;113.608273,23.547509'},\n",
       "   {'lcode': [],\n",
       "    'distance': '21',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608273,23.547509;113.608234,23.547322'},\n",
       "   {'lcode': [],\n",
       "    'distance': '130',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608234,23.547322;113.60819,23.547031;113.608121,23.54615'},\n",
       "   {'lcode': [],\n",
       "    'distance': '62',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608121,23.54615;113.608082,23.545586'},\n",
       "   {'lcode': [],\n",
       "    'distance': '15',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608082,23.545586;113.608077,23.545451'},\n",
       "   {'lcode': [],\n",
       "    'distance': '116',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608077,23.545451;113.60809,23.545013;113.608142,23.544488;113.60816,23.544405'},\n",
       "   {'lcode': [],\n",
       "    'distance': '89',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.60816,23.544405;113.60829,23.543698;113.608312,23.543607'},\n",
       "   {'lcode': [],\n",
       "    'distance': '46',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608312,23.543607;113.608398,23.543199'},\n",
       "   {'lcode': [],\n",
       "    'distance': '122',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608398,23.543199;113.608637,23.542118'},\n",
       "   {'lcode': [],\n",
       "    'distance': '60',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608637,23.542118;113.60875,23.541584'},\n",
       "   {'lcode': [],\n",
       "    'distance': '118',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.60875,23.541584;113.608971,23.54053'},\n",
       "   {'lcode': [],\n",
       "    'distance': '82',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608971,23.54053;113.609123,23.5398'},\n",
       "   {'lcode': [],\n",
       "    'distance': '131',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609123,23.5398;113.609323,23.538889;113.609366,23.538637'},\n",
       "   {'lcode': [],\n",
       "    'distance': '122',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609366,23.538637;113.609414,23.538329;113.609449,23.537956;113.609466,23.537539'},\n",
       "   {'lcode': [],\n",
       "    'distance': '94',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609466,23.537539;113.609466,23.537287;113.609427,23.536688'},\n",
       "   {'lcode': [],\n",
       "    'distance': '16',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609427,23.536688;113.609414,23.536536'},\n",
       "   {'lcode': [],\n",
       "    'distance': '49',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609414,23.536536;113.609332,23.536102'},\n",
       "   {'lcode': [],\n",
       "    'distance': '89',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609332,23.536102;113.609123,23.535312'},\n",
       "   {'lcode': [],\n",
       "    'distance': '47',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.609123,23.535312;113.608984,23.534909'},\n",
       "   {'lcode': [],\n",
       "    'distance': '79',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608984,23.534909;113.608733,23.534227'},\n",
       "   {'lcode': [],\n",
       "    'distance': '33',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608733,23.534227;113.60862,23.533941'},\n",
       "   {'lcode': [],\n",
       "    'distance': '112',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.60862,23.533941;113.608234,23.532986'},\n",
       "   {'lcode': [],\n",
       "    'distance': '64',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608234,23.532986;113.608121,23.532713;113.608008,23.532444'},\n",
       "   {'lcode': [],\n",
       "    'distance': '63',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.608008,23.532444;113.607795,23.53191'},\n",
       "   {'lcode': [],\n",
       "    'distance': '33',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.607795,23.53191;113.607682,23.531623'},\n",
       "   {'lcode': [],\n",
       "    'distance': '127',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.607682,23.531623;113.607244,23.530547'},\n",
       "   {'lcode': [],\n",
       "    'distance': '73',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.607244,23.530547;113.606984,23.529922'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿环市东路向西南行驶651米向右前方行驶进入右转专用道',\n",
       "  'orientation': '西南',\n",
       "  'road': '环市东路',\n",
       "  'distance': '651',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '80',\n",
       "  'polyline': '113.606984,23.529922;113.606858,23.529683;113.606645,23.52934;113.606484,23.529141;113.60638,23.529028;113.606124,23.528776;113.605894,23.528576;113.604944,23.527782;113.604388,23.527326;113.603559,23.526628;113.603216,23.526306;113.603142,23.526228;113.602765,23.525773;113.602648,23.525616',\n",
       "  'action': '向右前方行驶',\n",
       "  'assistant_action': '进入右转专用道',\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '29',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.606984,23.529922;113.606858,23.529683'},\n",
       "   {'lcode': [],\n",
       "    'distance': '71',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.606858,23.529683;113.606645,23.52934;113.606484,23.529141'},\n",
       "   {'lcode': [],\n",
       "    'distance': '16',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.606484,23.529141;113.60638,23.529028'},\n",
       "   {'lcode': [],\n",
       "    'distance': '70',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.60638,23.529028;113.606124,23.528776;113.605894,23.528576'},\n",
       "   {'lcode': [],\n",
       "    'distance': '131',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.605894,23.528576;113.604944,23.527782'},\n",
       "   {'lcode': [],\n",
       "    'distance': '76',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.604944,23.527782;113.604388,23.527326'},\n",
       "   {'lcode': [],\n",
       "    'distance': '114',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.604388,23.527326;113.603559,23.526628'},\n",
       "   {'lcode': [],\n",
       "    'distance': '61',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.603559,23.526628;113.603216,23.526306;113.603142,23.526228'},\n",
       "   {'lcode': [],\n",
       "    'distance': '63',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.603142,23.526228;113.602765,23.525773'},\n",
       "   {'lcode': [],\n",
       "    'distance': '20',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.602765,23.525773;113.602648,23.525616'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿从城大道向西行驶81米右转',\n",
       "  'orientation': '西',\n",
       "  'road': '从城大道',\n",
       "  'distance': '81',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '13',\n",
       "  'polyline': '113.602648,23.525616;113.602444,23.525486;113.60224,23.525395;113.602066,23.525352;113.601914,23.525339',\n",
       "  'action': '右转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '48',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.602648,23.525616;113.602444,23.525486;113.60224,23.525395'},\n",
       "   {'lcode': [],\n",
       "    'distance': '33',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.60224,23.525395;113.602066,23.525352;113.601914,23.525339'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '沿从城大道途径小海三桥向西北行驶458米右转',\n",
       "  'orientation': '西北',\n",
       "  'road': '从城大道',\n",
       "  'distance': '458',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '37',\n",
       "  'polyline': '113.601914,23.525339;113.601254,23.52576;113.600829,23.526029;113.599852,23.52668;113.599462,23.526936;113.599136,23.527148;113.598633,23.527487;113.598247,23.527752',\n",
       "  'action': '右转',\n",
       "  'assistant_action': [],\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '82',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.601914,23.525339;113.601254,23.52576'},\n",
       "   {'lcode': [],\n",
       "    'distance': '52',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.601254,23.52576;113.600829,23.526029'},\n",
       "   {'lcode': [],\n",
       "    'distance': '122',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.600829,23.526029;113.599852,23.52668'},\n",
       "   {'lcode': [],\n",
       "    'distance': '90',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.599852,23.52668;113.599462,23.526936;113.599136,23.527148'},\n",
       "   {'lcode': [],\n",
       "    'distance': '112',\n",
       "    'status': '畅通',\n",
       "    'polyline': '113.599136,23.527148;113.598633,23.527487;113.598247,23.527752'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]},\n",
       " {'instruction': '向东北行驶93米到达目的地',\n",
       "  'orientation': '东北',\n",
       "  'distance': '93',\n",
       "  'tolls': '0',\n",
       "  'toll_distance': '0',\n",
       "  'toll_road': [],\n",
       "  'duration': '54',\n",
       "  'polyline': '113.598247,23.527752;113.598307,23.527839;113.598407,23.527956;113.598633,23.528255;113.598633,23.528255;113.598776,23.528451',\n",
       "  'action': [],\n",
       "  'assistant_action': '到达目的地',\n",
       "  'tmcs': [{'lcode': [],\n",
       "    'distance': '11',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.598247,23.527752;113.598307,23.527839'},\n",
       "   {'lcode': [],\n",
       "    'distance': '16',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.598307,23.527839;113.598407,23.527956'},\n",
       "   {'lcode': [],\n",
       "    'distance': '40',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.598407,23.527956;113.598633,23.528255;113.598633,23.528255'},\n",
       "   {'lcode': [],\n",
       "    'distance': '26',\n",
       "    'status': '未知',\n",
       "    'polyline': '113.598633,23.528255;113.598776,23.528451'}],\n",
       "  'cities': [{'name': '广州市',\n",
       "    'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'districts': [{'name': '从化区', 'adcode': '440117'}]}]}]"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "中大南方to从化汽车站 = driving(hnh_key,起始点_中大南方,终点_从化汽车站)\n",
    "中大南方to从化汽车站"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 周边搜索\n",
    "> - 周边搜索：在用户传入经纬度坐标点附近，在设定的范围内，按照关键字或POI类型搜索；\n",
    "> - url:https://restapi.amap.com/v3/place/around?parameters \n",
    "> - 请求方式：requests.get\n",
    "> - 请求参数：key,location为必选，其他可选参考API文档"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.586605,23.548852'"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "##数据准备\n",
    "中方南方_address = \"广东省广州市从化区\"\n",
    "location = geocode(hnh_key,中方南方_address)\n",
    "location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "def around(key,location,keywords=None,types=None,city=None,radius=3000,sortrule=\"distance\",offset=20,page=1,extensions=\"base\",sig=None,output=\"JSON\",callback=None):\n",
    "    around_url = \"https://restapi.amap.com/v3/place/around?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"keywords\":keywords,\n",
    "        \"types\":types,\n",
    "        \"city\":city,\n",
    "        \"radius\":radius,\n",
    "        \"sortrule\":sortrule,\n",
    "        \"offset\":offset,\n",
    "        \"page\":page,\n",
    "        \"extensions\":extensions,\n",
    "        \"sig\":sig,\n",
    "        \"output\":output,\n",
    "        \"callback\":callback\n",
    "    }\n",
    "    \n",
    "    r = requests.get(around_url,params=params)\n",
    "    result = r.json()['pois']\n",
    "    names = []\n",
    "    address1 = []\n",
    "    for i in result:\n",
    "        names.append(i['name'])\n",
    "        address1.append(i['address'])\n",
    "    union = dict(zip(names,address1))\n",
    "    return union"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'从化区革命烈士纪念碑': '街口镇西宁中路与教育路交接处',\n",
       " '古楼镇禤园': '西宁西路与环城路交叉路口往东约100米',\n",
       " '从化基督教堂': '东成路8',\n",
       " '基督教徒化堂': '东成路16号附近',\n",
       " '河滨公园': '河滨北路68号',\n",
       " '青云公园': '街口街青云路95号',\n",
       " '遯齐黄公祠': '城内路164-2号附近',\n",
       " '煌寝国栖': '中田东路28号附近',\n",
       " '谭氏宗祠': '尚平里',\n",
       " '清风广场': '城南新村',\n",
       " '河岛公园': '河滨北路45号',\n",
       " '北星社区文化广场': '城郊街',\n",
       " '北帝古庙': '城东路与环城路交叉口西50米',\n",
       " '河东广场': '河东北路与355省道交叉口西50米',\n",
       " '新城广场': '广场路',\n",
       " '三圣殿': '七星西路26号附近',\n",
       " '圆通寺': '七星西路与七星路交叉口东南100米',\n",
       " '向阳二社文化广场': '长流埔附近',\n",
       " '文化公园': '从城大道',\n",
       " '王府门': '旺城大道141附近'}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "学校周边美食=around(hnh_key,location,keywords=\"景点\",city=\"广州市\")\n",
    "学校周边美食"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 天气查询\n",
    "> - 产品介绍：天气查询是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况。\n",
    "> - url:https://restapi.amap.com/v3/weather/weatherInfo?parameters\n",
    "> - 请求方式：requests.get\n",
    "> - 请求参数：key,city为必选，其他可选参考API文档\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(city,key=\"d51fbd0868d98deca1f02899f79c6e8e\",extensions=None,output=\"JSON\"):\n",
    "    weather_url = \" https://restapi.amap.com/v3/weather/weatherInfo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"city\":city,\n",
    "        \"extensions\":extensions,\n",
    "        \"output\":output\n",
    "    }\n",
    "    \n",
    "    r = requests.get(weather_url,params=params)\n",
    "    result = r.json()\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '广东',\n",
       "   'city': '从化区',\n",
       "   'adcode': '440117',\n",
       "   'weather': '晴',\n",
       "   'temperature': '16',\n",
       "   'winddirection': '东北',\n",
       "   'windpower': '≤3',\n",
       "   'humidity': '68',\n",
       "   'reporttime': '2021-01-27 00:22:44'}]}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "city=\"从化区\"\n",
    "湛江天气=weather(city)\n",
    "湛江天气"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
